rdub Posted February 29, 2008 Share Posted February 29, 2008 I would like to see my results from left to right rather than just from top to bottom. This is the current code: echo $row['Customer']; ?></strong></span></td> <td><span class="style1"><strong> <? echo $row['Customer']; ?> </strong></span></td> <td> </td> </tr> Link to comment https://forums.phpfreaks.com/topic/93615-echo-query-results/ Share on other sites More sharing options...
rdub Posted February 29, 2008 Author Share Posted February 29, 2008 Probably should have shown this <? // If you have selected from list box. if(isset($select)&&$select!="" && $select != "--select--" ){ // Get records from database (table "members"). $result=mysql_query("select * from members where Category_Listing='$select'"); echo "<h1>".$select."</h1><br>"; while($row=mysql_fetch_assoc($result)) { ?> </p> <table width="250" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><span class="style1"><strong> <? echo $row['Customer']; ?></strong></span></td> </tr> <tr> <td align="left"><span class="style1"><? echo $row['Sub_Category']; ?></span></td> </tr> <tr> <td><span class="style1"><? echo $row['Phone']; ?></span></td> </tr> <tr> <td><span class="style1"> <? if( $row['Fax'] != "") { echo "Fax " . $row['Fax']; } ?> </span></td> </tr> <tr> <td><span class="style1"> <? if( $row['Description'] != "" && $row['Email'] != "") { echo '<a href="mailto:'.$row['Email'].'">'.$row['Email']."</a>"; } ?> </span></td> Link to comment https://forums.phpfreaks.com/topic/93615-echo-query-results/#findComment-479694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.