A
Anonymous
Guest
hey there.. :help: needed here too. i think maybe i got the same problem as u do. im trying to retrieve data from the database and return in row after row in a table. however it always returns the mysql_fetch_array() error. im not sure what or where went wrong as im extremely new to php/mysql. think u could give me a hand on this?
here's the code that i used:
<?php
$select = mysql_query("SELECT * FROM 'user'", $cn1);
while($row = mysql_fetch_array($select, mysql_assoc))
{
$username = $row['username'];
$fullname = $row['fullname'];
$memberstatus = $row['memberstatus'];
echo "$username";
echo "$fullname";
echo "$memberstatus";
}
?>
here's my many thanks in advance!
here's the code that i used:
<?php
$select = mysql_query("SELECT * FROM 'user'", $cn1);
while($row = mysql_fetch_array($select, mysql_assoc))
{
$username = $row['username'];
$fullname = $row['fullname'];
$memberstatus = $row['memberstatus'];
echo "$username";
echo "$fullname";
echo "$memberstatus";
}
?>
here's my many thanks in advance!