Re: diferent data on diferent columns...

From: Date: Mon, 19 Nov 2001 22:26:42 +0000
Subject: Re: diferent data on diferent columns...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75159@lists.php.net to get a copy of this message
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 lee@mediawaveonline.com "Romeo Manzur" <rmanzur@yahoo.com> wrote in message news:3BF97FE0.419F4CDB@yahoo.com... > Hi, I wonder how could I do a script for print direfent data on > diferents columns from a table... > I mean this > $result = mysql_query("SELECT * FROM xxx"); > while(($row = mysql_fetch_array($result)){ > echo "<table> > echo " <tr> > echo " <td>".$row[id]."<td>\n";//id for the firt record > ex:1 > echo " <td>".$row[id]."<td>\n";//id for the second > record ex: 2 > echo " </tr>\n"; > echo "</table>\n"; > > if I do this it prints the same record value... > > please I need help... >

« previous php.general (#75159) next »