MySQL, how to use returned data?
Posted
by aejo
on Stack Overflow
See other posts from Stack Overflow
or by aejo
Published on 2010-05-28T08:40:36Z
Indexed on
2010/05/28
8:51 UTC
Read the original article
Hit count: 137
mysql
|mysql-query
Well, I know there is a funciton mysql_fetch_array() and we can use it like this:
while ($row = mysql_fetch_array($result)) {
echo $row['name'] . "<br />";
}
But is there any other way? For example, if there is only one element that can be returned, and not an array.
Thanks)
© Stack Overflow or respective owner