mysql list to two-column list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a members list witch I print out once a week,
I would like to make the list into two-column list, but I dont know where to start looking to change the code?

here is the code
"
$result = mysql_query("SELECT * FROM customers ORDER BY LastName");

while($row = mysql_fetch_array($result))
  {
  echo $row['LastName'];
  echo " " . $row['FirstName'];
  echo " " . $row['CustomNo'];
  echo "<br />";
  }
"

example output:

Bond James Bond 007
Quagmire Glenn 101
Griffin Peter 102
etc

---
tom_a_sparks "It's a nerdy thing I like to do"
Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html
Ubuntu wiki page https://wiki.ubuntu.com/tomsparks
3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter
Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux