Mysql / Php - printing when theres only a single record

unix

New Member
Whats the best way to print from mysql using php when you know theres only going to be a single record.My Sql is "select user from users where user = 'norman';This will return only a single record. So what's the best way to print it? I currently do:while ($info=mysql_fetch_assoc($data))etcetcBut thats ok for more than one record. Any better way to do this when theres only one?Thanks
 
Back
Top