Hi,
This problem must be easy to solve, but I can't find it.
Here's my PHP/query:
$q = "SELECT ip FROM tbl_name WHERE id = '".$id."'";
$r = mysql_query($q);
The only way I know how to print the results is with a
while($row = mysql_fetch_row($r))
{
echo $row[0];
}
I want to make a much simpler version of that, because I don't need a loop. Plus, the above doesn't work for me in this scenario for some reason.
This should be an easy answer.
Thanks.