Jump to content

[SOLVED] Need Multiple Columns Select Statement


TecTao

Recommended Posts

Have a 3 column table, id, category_names, category_status.  There are 37 rows.

 

The select statement works fine, produces a long list of the 37 category_names.  Would like to break up the list into 3 columns and am stuck.

 

Here the select statement I'm using.

 

		<?php 
$result = mysql_query( "SELECT * FROM _list WHERE category_status <> 1 ORDER BY category_names ASC" )
or die("SELECT Error: ".mysql_error());

$num_rows = mysql_num_rows($result);

  while ($row = mysql_fetch_array($result))
  {
     extract($row);

echo $category_names;
echo "<br> ";

$row_count++; 
}

mysql_close;
?>

 

Thank you for any help or suggestions 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.