usuario edad cumpleaños imagen
y yo quiero que los muestre
imagen imagen imagen
usuario usuario usuario
edad edad edad
cumpleaños cumpleaños cumpñleaños
el caso es que no tengo ni idea por donde empezar
el codigo que muestra el resultado es este
Código PHP:
<table width="100%" class=tr>
<tr class=mes bgcolor="<?=COLORH?>" align=center><td><?=$w[118]?></td><td><?=$w[132]?></td><td><?=$w[120]?></td><td><?=$w[87]?></td></tr>
<?$tmp=mysql_query("SELECT id, fname, gender, birthday, pic1, pic2, pic3 FROM ".C_MYSQL_MEMBERS." WHERE status >= '7' order by pic1=1 ASC limit ".C_LASTREG);
$color='';
while($i=mysql_fetch_array($tmp)) {
$color = ($color == COLOR4) ? COLOR5 : COLOR4;
$name = (trim($i['fname']) == '') ? $i['id'] : $i['fname'];
$ph = (($i['pic1'] == '')&&($i['pic2'] == '')&&($i['pic3'] == '')) ? $w[111] : $w[112];
$age=abs(mysql2data($i['birthday'],1));
for ($p=1;$p <= 1;$p++) {$pic='pic'.$p;
if ($i[$pic]=="") $i[$pic]='no-imagen.gif';
echo "<tr class=desc bgcolor=\"".$color."\" align=center><td><a href=\"view.php?l=".$l."&id=".$i['id']."\" class=desc>".$name."</a></td><td>".$wg[$i['gender']]."</td><td>".$age."</td><td><img src='../members/uploads/$i[$pic]' border='1' height='55' width='50' align='center'></td></tr>";} }
$tmp=mysql_query("SELECT count(id) as total FROM ".C_MYSQL_MEMBERS." WHERE status >= '7'");
$rows=mysql_fetch_array($tmp);$usc=$rows['total'];?>
</table>
Un saludo