Jump to content

What am I doing wrong?


AV1611

Recommended Posts

what am I doing wrong?

 

$LIST[0]=1; /for demonstration purposes

$LIST[1]=7; /for demonstration purposes

 

$result=mysql_query(select * from table where field IN $LIST);

 

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array' at line 1

Link to comment
https://forums.phpfreaks.com/topic/133387-what-am-i-doing-wrong/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.