i'm pretty new to this and not sure how should i do it,
I've got a database with a column called "names"
how can i make it display in so?
HenryJeffreyHanselMichelleJacksonIvanI only know how i should do it if the records goes one after another vertically.
$result = mysql_query('SELECT * FROM member');
while($row = mysql_fetch_array($result))
{
echo'
'.$row['names'].'JeffreyHansel';Kinda stucked here...
Sorry i forgot to put this.
what i want is that it should loop the tags along. So i can have a 3 column table with infinite rows.
what bout this one? What if i want this to loop instead?
A BAB解决方案
$row will update on each iteration of the loop:
$result = mysql_query('SELECT * FROM member');
echo '
';for($i = 0; $row = mysql_fetch_array($result); $i = ($i+1)%3){
echo '
'.$row['names'].'';if($i == 2)
echo '
';}
echo '
';