[PHP] Re: diferent data on diferent columns...
I found the way... $i = 0; $result = mysql_query("SELECT * FROM sometable"); echo " \n"; while($row = mysql_fetch_array($result)){ echo "".$row[id]."\n"; if($i % 2 == 1){ echo " \n"; echo " \n"; } $i++; } echo " \n"
[PHP] Re: diferent data on diferent columns...
echo "".$row[id]."\n";//id for the firt record ex:1 echo "".$row[name]."\n";//id for the second record ex: 2 or echo "".$row[0]."\n";//id for the firt record ex:1 echo "".$row[1]."\n";//id for the second record ex: 2 is that what you mean? -- Chris Lee [EMA