mysql fetch object
Пример 1. mysql fetch object
<?php mysql_connect($host,$user,$password); $result = mysql_db_query("database","select * from table"); while($row = mysql_fetch_object($result)) { echo $row->user_id; echo $row->fullname; } mysql_free_result($result); ?>
См. также: mysql_fetch_array() и
mysql_fetch_row().
Содержание раздела