?php
mysql_connect(
"localhost"
,
"mysql_user"
,
"mysql_password")
;
mysql_select_db("mydb")
;
$query
=
"select
*
from
table"
;
$result
=
mysql_query($query)
;
while
($row
=
mysql_fetch_assoc($result)
)
{
echo
$row["user_id"]
;
echo
$row["fullname"]
;
}
mysql_free_result($result)
;
?
|