Hi,
I am trying to create a 3 column table, where each row will contain 3 'cells' which each contain the following info for a product - Product Name, Description, Product Link, Image and Price - so, in a 3x3 table I would have 9 products.
Any help much appreciated, I only started to look at MySQL and PHP less than 5 days ago, so it's been an incredibly steep learning curve but have come to a bit of a halt...spent hours playing with code I have come across on the web and reading various tutorials but still struggling big time...managed to do everything myself so far
Here is php code I have...
<?php
mysql_connect("xx", "xx", "xx") or die(mysql_error());
mysql_select_db("xx") or die(mysql_error());
// Retrieve all the data from the table
$result = mysql_query("SELECT * FROM xx")
or die(mysql_error());
while($row = mysql_fetch_array($result))
{
$product_name = $row['product_name'];
$description = $row['description'];
$deep_link = $row['deep_link'];
$image_url = $row['image_url'];
$search_price = $row['search_price'];
echo "<h2>" . $product_name . "</h2>";?>
<img src="<?php echo $image_url; ?>" ></img><BR /><BR />
<?php echo "<b>Description: </b>" . $description . "<BR />";?>
<?php echo "<b>Price: </b>" . $search_price . "<BR />";?>
<h4><a href="?php echo $deep_link; ?>">Click here to buy<a/></h4>
<BR /><HR>
<?php
}
?>