maxudaskin Posted July 11, 2007 Share Posted July 11, 2007 Is this correct? mysql_fetch_array('SELECT * FROM `applications` WHERE `id` = ' . $id) I get an error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted July 11, 2007 Share Posted July 11, 2007 to run the mysql_fetch_array you need a mysql resource. to get this you must first run a query: mysql_fetch_array('SELECT * FROM `applications` WHERE `id` = ' . $id) should be: $query = mysql_qurey("SELECT * FROM `applications` WHERE `id`='{$id}'"); $array = mysql_fetch_array($query); hope it helps. Quote Link to comment Share on other sites More sharing options...
maxudaskin Posted July 11, 2007 Author Share Posted July 11, 2007 to run the mysql_fetch_array you need a mysql resource. to get this you must first run a query: mysql_fetch_array('SELECT * FROM `applications` WHERE `id` = ' . $id) should be: $query = mysql_qurey("SELECT * FROM `applications` WHERE `id`='{$id}'"); $array = mysql_fetch_array($query); hope it helps. Thanks!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.