Resource ID#3 ERROR?

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
nishmgopal
Forum Contributor
Posts: 101
Joined: Tue Mar 03, 2009 9:38 am

Resource ID#3 ERROR?

Post by nishmgopal »

Hi Guys,

the following code keeps giving me an error "Resource ID#3"

Code: Select all

 
$sql = "SELECT * FROM ID_Table WHERE Job_ID IN (SELECT Job_ID FROM Job_ID WHERE Job_ID ='1')";
$result = mysql_query($sql)
or die ("Couldn't execute query.");
 
echo $result;
 
Can you please help
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Resource ID#3 ERROR?

Post by jayshields »

Read the mysql_query() manual page.
Post Reply