error and general problems
| From: | Liz Bander | Date: | Mon, 26 Mar 2001 16:44:08 +0000 |
| Subject: | error and general problems | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7833@lists.php.net to get a copy of this message | ||
I am getting a parse error for the return line every time I try and view the page. Can anyone tell me why? The code is below.
$results = "select req, source, number from orders where req=" . $GLOBALS["req"] . ", source=" . $GLOBALS["source"] . ",
number=" .$GLOBALS["req"] . "";
if (mysql_fetch_row($results) != 0) {
return "This has already been added.";Also (since this is part of the problem, I'm sure) how do I take the $GLOBALS values and set them equal to the req and source values in the select statement? Is this syntax correct? The $GLOBALS values are pulled earlier from a similar select statement. Thanks, Liz