If I only have one row that I'm getting through
$sql = mysql_query("SELECT id,user,comments FROM user WHERE id='15' AND user = '15'");
is there a way to just get the comments from that one row without going through a while loop :
while($row = mysql_fetch_array($sql)){
$comments = $row['comments'];
}
Is there something similar besides using a while loop? If my data has thousands to millions of data, a while loop will take a long time? Is this a more logical way to locate a certain row and reduce its speed?
Thanks for your help!