RE: [PHP-DB] DB CODEING HELP!!!!!

2003-03-23 Thread Peter Lovatt
hi hth Peter '; while($row = mysql_fetch_array($mysql_result)) {// enter display code here $retval.='         '.$row["Column_name1"].'  '.$row["Column_name2"].'  '.$row["Column_name3"].'  '.$row["Column_name4"].'          '; }// end while $

RE: [PHP-DB] DB CODEING HELP!!!!!

2003-03-23 Thread Daevid Vincent
Here, this will pull data and make a select box. Adjust as needed. $result = mysql_query("SELECT company_id, company_name FROM company_table ORDER BY company_name", $db); if (mysql_num_rows($result) > 0) { echo "\n\t\n"; while ( $row = mysql_fetch_array($result,MYSQL_ASSOC) )

RE: [PHP-DB] DB CODEING HELP!!!!!

2003-03-23 Thread Rich Gray
> this is bugging me. I have tried everything and I cant develop > the code without an error. Can someone plese write me simple code > that will go through a table and print 3 collums of that table? I > cant figure it out I don't know which database you're using but say for example it was MySQL he