Im new to this so your saying$mainsection="links"; //The name of the table where web links are stored$query1='SELECT * FROM `Orders` WHERE warehouselocation=\'c\''; order by OrderDate DESC $result = mysql_db_query($dbname, $query1) or die("Failed Query of " . $query1); //do the querywhile($thisrow=mysql_fetch_row($result)){ $i=0; while ($i < mysql_num_fields($result)) { $field_name=mysql_fetch_field($result, $i); echo $thisrow[$i] . " "; //Display all the fields on one line $i++; }echo <br>"; //put a break after each database entry}I have nothing named links or n e thing like that so what do you think?