mySQL problem
| From: | Cybercandy Ltd | Date: | Mon, 06 Nov 2000 23:14:54 +0000 |
| Subject: | mySQL problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24005@lists.php.net to get a copy of this message | ||
Please someone put me out my misery and tell me why this won't work:
$sql = "SELECT pagebase.* FROM pagebase WHERE ((( page &
pagenum)=\"$page\"))";
Where page is a column containing a 3 letter string (e.g. ABC) and pagenum
an integer (e.g 1)
What I though the above would do would allow me to carry out a "where"
against the fields combined (e.g ABC1). What am I doing wrong?