|
Have You Tried Connecting to Your SSH Terminal, with the Debugging Flag?
If Not, Please try Connecting with the Verbose flag and Post the Output (ssh -vvv)
|
|
|
|
|
|
if there are 2 list boxes and i want related sub-category of products in 2nd list box, whwreas in 1st list box there are categories of product...
how i will implement this ?
|
|
|
|
|
Simple suggestion, use AJAX
|
|
|
|
|
Anyone can help me with my project... i want to know what is the codes of automatic delete database files/data within an hour using php...because how many tries i do i can't get it...
modified 4-Feb-12 3:02am.
|
|
|
|
|
Dude,
->I cannot Get it either, will tell me, what you mean by automatic?
as well as delete database files and also what does it mean with in an hour?
->What is your actual problem?
Are you failing to delete tables?
Are you failing to detect list of tables?
or what?
I know I am coward since the day I know that fortune favors the brave
|
|
|
|
|
Your question is quite confusing, but what I understood is, you are trying to delete some data from a table-
Here you go -
DELETE FROM table_name
WHERE some_column = some_value
|
|
|
|
|
thanks!!!
|
|
|
|
|
Darkcrab Press is looking for potential authors to write book on any Technologies and Domain. Anyone interested in writing book on any Technologies and Domain please do contact author@darkcrab.com
|
|
|
|
|
Although I'm not a noob when it comes to programming, I have zero experience of web services so I'm seeking advice!
For one of our departments at work I have developed a simple CRUD application using Apache, MySQL and PHP on a local network server. This works fine
Due to expansion of the department, the database is to be migrated to the main DB server to which I will not be able to make direct calls from my PHP code due to security. They are happy however to create a webservice that I can use that will in turn access the database. I have total say in how the data will be returned to me for interpretation by my PHP pages and how I send data to the web service.
Which is the recommended way (I hear alot of 'talk' about JSON nowadays) and do you know of any good tutorials that you would recommend?
(I'm posting here as I'm not sure where is best, and from my side of things PHP will be doing all the communication with the service)
|
|
|
|
|
Hi,
It is better to use XML way, which is more understandable and easy.But JSON is much efficient and fast.
|
|
|
|
|
|
I did understand that you would develop the serverside application with PHP
But I didn't understand what would be the client application, Would it be web browser? or are you going to develop Application to extract the reply from HTTP server.
I know I am coward since the day I know that fortune favors the brave
|
|
|
|
|
The Client will be a web browser using PHP/Apache on a local server. The local PHP scripts will communicate with the remote web service.
Web Browser <-> Local Apache/PHP <-> Web Service <-> Remote Apache/MySQL/PHP
|
|
|
|
|
Both will be perfect,
or you just can create a user with permitting only one host ip with the limitation of tables connection. It wont do any herm
I know I am coward since the day I know that fortune favors the brave
|
|
|
|
|
Hi,
In ASP.NET, the best way to manage http errors e.g: Error 400.x, 500.x is to specify this in the web.config or globax.asax file.
How do I accomplish the same in php, because I was to get a nicely formatted error page displayed to my users instead of the anoying apache error page.
Please help!
|
|
|
|
|
|
Hi
I have two posts: /post1, /post2
how I can create a link that every 20 seconds redirect to one of them. I mean if this link go to /post1, after 20 seconds if that or another person click on it go to /post2, also this time sets with server time
please help me
thanks
|
|
|
|
|
How can i add simple texteditor to my application.Just like post a question in this site.
|
|
|
|
|
|
If you run this in a browser you can see the form. I want to clarify how could that be happen the form is inside the if statement. Is there any way you can hide html code in PHP. The html code will be executed if the "if" statement is true.
<?php
require "../utility/connection.php";
$submit = true;
if(isset($_POST['submit'])){
$query = mysqli_query($connect, 'SELECT * FROM email_accounts');
}else{
}
if($submit = true){?>
<form method="post" action=" .<?php echo $_SERVER['PHP_SELF']; ?> ">
<label for="subject">Subject:</label>
<input type="text" id="subject" name="subject" value="<?php echo $subject; ?>" />
<br />
<br />
<label for="message_body">Say something:</label>
<textarea id="message_body" name="message_body"><?php echo $msg_body;?></textarea>
<br />
<input type="submit" id="submit" name="submit" value="Send Email" />
</form>;
<?php
}
?>
|
|
|
|
|
First, your 'if' statement is wrong - you have used a single '=', which means it assigns the value true to $submit and then tests it, finding it to be true and executing the block that follows. Here are some options that will work:
if($submit == true) {
if($submit === true) {
if($submit) {
The second reason your form will display is that you have set $submit to true on the second line of the script, and you don't appear to be setting it anything else elsewhere in the code.
|
|
|
|
|
Wow your great.
I change the initial value of submit to false. I also change the "if" statement to == but the form still showing.
Thanks for your help.
|
|
|
|
|
Just to clarify aswell:
= is an assignment operator.
== is the comparison operator as mentioned above.
=== is another comparison operator I call identity, which checks for equality AND type.
As PHP is not strongly typed, a variable can change types dynamically at runtime.
Example:
$a = 2;
$b = "2";
A comparison would be like this:
if($a == $b)
{
}
..would be TRUE, as they have the same value, but one is an integer and one is a string.
if($a === $b)
{
}
.. would be FALSE, because they have matching values but different types!
For me, understanding this in the beginning helped me to write reliable condition tests for websites and applications.
|
|
|
|
|
flashery wrote: If you run this in a browser you can see the form.
PHP doesn't run in a browser, it runs in the web server. If you open a PHP file directly in a browser (by File->Open...) instead of loading it from a server the PHP code won't get executed.
|
|
|
|