Sunday, May 12, 2013

list of fetch data from mysql

The most frequently used option is to use function mysql_fetch_array(). This function returns row as an associative array, a numeric array, or both. This function returns FALSE if there are no more rows.

 Fetch a result row as an associative array
Get a result row as an enumerated array
The mysql_fetch_object() function returns a row from a recordset as an object.
This function gets a row from the mysql_query() function and returns an object on success, or FALSE on failure or when there are no more rows.

The mysql_fetch_field() function returns an object containing information of a field from a recordset.

No comments:

Post a Comment