[PHP] Re: diferent data on diferent columns...

2001-11-19 Thread Chris Lee
echo td.$row[id].td\n;//id for the firt record ex:1 echo td.$row[name].td\n;//id for the second record ex: 2 or echo td.$row[0].td\n;//id for the firt record ex:1 echo td.$row[1].td\n;//id for the second record ex: 2 is that what you mean? -- Chris Lee

[PHP] Re: diferent data on diferent columns...

2001-11-19 Thread Romeo Manzur
I found the way... $i = 0; $result = mysql_query(SELECT * FROM sometable); echo tr \n; while($row = mysql_fetch_array($result)){ echo td.$row[id]./td\n; if($i % 2 == 1){ echo /tr\n; echo tr\n; } $i++; } echo