i am new in terms of php or in programming i know only few in php. I have a question and it probably simple for you guys, i am having a problem here to show data from mysql database, i have this code:
<?php
$getfriend= mysql_query("SELECT * from members");
$friend=mysql_fetch_array($getfriend);
$rowfriend=mysql_num_rows($getfriend);
//$users = array()--->i think i have to put it into a array, but i don't know how
if($rowfriend>1){
for ($x=0; $x < 10; $x++){
echo '<tr><td name =""><img src="" alt="" width="50" height="50" /> </td></tr>';
}
}
?>
what i want is to show pictures, names, gender, bday and so on... which is all from mysql database. i used here the so called for loop just to control how many rows i am going to show in page. my code is working it shows 3 with the problem here is i don't know how to put its content to the td's. can guys help me doing this?