I want to print out two things from the row in my table.
here is the code i'm using, but its not working..
$getinfo = mysql_query("SELECT name FROM tablename WHERE user='$user'");
$name = mysql_result($getinfo,0,"name");
when i print $name, it comes out with an error. Why is this?
my table looks like this
rowid|user|name
each user is uniqe