ale1981 Posted July 19, 2007 Share Posted July 19, 2007 I have always wondered if there is a way of doing a quicker select statement than the one below; $userID = $_GET['userID']; $result = mysql_query("SELECT name FROM users WHERE userID = $userID"); $row = mysql_fetch_row($result); echo $row[0]; Can this query be shortened for simple queries like this one where I just want to retrieve a single field from one row? Link to comment Share on other sites More sharing options...
ale1981 Posted July 19, 2007 Author Share Posted July 19, 2007 crap! can somebody close this topic please, posted in wrong section! Link to comment Share on other sites More sharing options...
Recommended Posts