Saturday, December 11, 2004

:: Mysql (mysql_fetch_object) ::


mysql_fetch_object

1) akan amik dr database field name... klu mysql_fetch_array kiter akan quote kan
dier nyer row number sbg output..

2) tp mysql_fetch_object klu kiter nk quote kan output dier.. kener guner kan
nama field exactly..


speed wise.. samer jer..
e:g
$row = mysql_fetch_object($result);

/* this is valid */
echo $row->field;
/* this is invalid */
// echo $row->0;


selepas ku membaca manual.. nk buat drop down..

No comments: