mysql/php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
garry27
Forum Commoner
Posts: 90
Joined: Sat Oct 14, 2006 1:50 pm

mysql/php

Post by garry27 »

what's wrong with this statement- i'm trying to narrow the search down using the sql filter variable i've created but get an error?:

Code: Select all

$sql = mysql_query("SELECT pubID, pubName, pubPostcode from Pubs 
	                  WHERE pubID IN ($sql_str) ") 
				        or die ('query2 invalid on table_data.php: ' . mysql_error() );
TIA
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

posting the error may help us.
Post Reply