MySQL Forums
Forum List  »  PHP

Re: php can't communicate with mysql database
Posted by: Peter Brawley
Date: January 30, 2014 10:14PM

$sqlcommand='SELECT id FROM admin WHERE username="$manager" AND password="$pass"';

What happens when you write ...

echo $sqlcommand;

Does it look right? What happens when you copy that text from the screen and paste it into the mysql client?

Options: ReplyQuote


Subject
Written By
Posted
Re: php can't communicate with mysql database
January 30, 2014 10:14PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.