$mquery = mysql_query("SELECT * FROM users where `userid ` = 1"); $result = mysql_fetch_arrray($mquery); echo $result['name'];