I'm in need of some assistance from you PHP/MySQL gurus out there. I'm trying to select one piece of data from a MySQL table but I can't find an efficient way, other than doing like so:
and using $info from there. But when dealing with one piece of data, the array function doesn't work, since there's only one piece, and it doesn't count it as an array. How do I fetch $info as a variable?
|$query = "SELECT info FROM table WHERE id=".$id;
$result = mysql_query($query);
$array = mysql_fetch_array($result);