Jump to content

mysql query result


fer0an

Recommended Posts

mysql_query() returns a resource if the query was successful. To get database rows, you need to use fetch function such as mysql_fetch_assoc() on the result

 

$result = mysql_query($query);
i($result) {
    $row = mysql_fetch_assoc($result);
}

 

http://php.net/manual/en/function.mysql-fetch-assoc.php

Link to comment
https://forums.phpfreaks.com/topic/216059-mysql-query-result/#findComment-1122909
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.