PHP4 & SQL: Invalid statement
| From: | Cato Larsen | Date: | Tue, 26 Feb 2002 08:51:16 +0000 |
| Subject: | PHP4 & SQL: Invalid statement | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80696@lists.php.net to get a copy of this message | ||
Hello!
When I run this SQL in PHP I get an error:
Snip -->
$sql="SELECT * FROM site WHERE sID='$wID'";
$result=mysql_query($sql,$db);
$row = mysql_fetch_array($result);
$content = $row["content"];
<--Snip
The problem is that I believe that it can't fetch the code from the content
as it is a "Long Text" in MySQL.
Does anyone know what I am doing wrong and how to fix it?
If you want to see the whole code, please put a post and I'll paste it all.
Thanks!
Cato