Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get only one row in mysql

$q = "select whatIwant FROM table where id = 'myId' LIMIT 1";
$r = mysql_query($q);
while($i = mysql_fetch_array($r)) {
   $j = $i['whatIwant'];
}
echo $j;
 
PREVIOUS NEXT
Tagged: #row #mysql
ADD COMMENT
Topic
Name
2+3 =