Jump to content

[SOLVED] MySQL Varible Select From Help


maxudaskin

Recommended Posts

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. :)

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!! :D

 

 

 

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.