Query not working

wxdqz

New Member
$picresult=mysql_query("SELECT * FROM images ",$db);

WHat could possible be wrong with the above statement?

I have a table named images.
$db is the corerct conenction, since I'm using that same $db at other places later in the page, which work absolutely fine.
this is the error I get:
Warning: Supplied argument is not a valid MySQL-Link resource

THe table is not empty.
Here is it's setup:
id->Primary key, autoincrement, int
image->text (I'm just storing the URL)
subject->VARCHAR(255)
caption->Varchar(255)

Thanks in advance to all who help.
-Manuel
 
Back
Top