Jump to content

Need Help Creating 3 Columns From a Simple Query Array


TecTao

Recommended Posts

I've found a couple of tutorials but can't seem to get them to work correctly.  Tying to get the results of this query into 3 columns.

 

<?php

$result = mysql_query( "SELECT * FROM manufacturers ORDER BY mfg_name ASC" )

or die("SELECT Error: ".mysql_error());

$num_rows = mysql_num_rows($result);

 

  while ($row = mysql_fetch_array($result))

  {

    extract($row);

 

 

echo "<a href= " . $web_html . " target= _blank class=linecard>" . $mfg_name . "</a></br>";

 

$row_count++;

}

 

mysql_close;

?>

 

Thanks for any help in advance.

Mike

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.