Jump to content

data won't format


Recommended Posts

Why are my prices on top of my table?$.25$1.00$2.00Company Item PriceCompany A Product BCompany B Product BCompany C Product CMy script:

<?phpinclude_once "connect_to_mysql.php";$result = mysql_query("SELECT * FROM clioff") or die(mysql_error()); echo "<table border='1'>";echo "<tr> <th>Company</th> <th>Item</th> <th>Price</th></tr>";// keeps getting the next row until there are no more to getwhile($row = mysql_fetch_array( $result )) {	// Print out the contents of each row into a table	echo "<tr><td>"; 	echo $row['client'];	echo "</td><td>"; 	echo $row['item'];	echo "</td></tr>"; 	echo $row['price'];	echo "</td></tr>"; } echo "</table>";?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...