utilisez ceci : $result = mysql_query("SELECT value FROM table WHERE row_id='1'"); return mysql_result($result, 0);