Hello to everyone.
Can someone give me a little help, i am new in PHP and i got stock in some php code.
I am trying to create a website which have some php code to call some data from mysql database
i have found some part of the php code in some other forum the code works perfect the only problem i have is that when i want to call the row of images i just gate the name of the image not the image as view " image.jpg"
the code i have is like below.
<?php
// Connects to your Database
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("sherbime") or die(mysql_error());
$data = mysql_query("SELECT * FROM products")
or die(mysql_error());
Print "<table border=1 cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
echo "<th></th> <td>".$row['Image'] . "</td>";
Print "<th> Desktop:</th> <td>".$info['Desktop'] . "</td> ";
Print "<th>Model:</th> <td>".$info['Model'] . "</td> ";
Print "<th>Parameters:</th> <td>".$info['Parameters'] . "</td> ";
Print "<th>Price:</th> <td>".$info['Price'] . " </td></tr>";
}
Print "</table>";
?>
i am using wampserver, also have another question, where should i store my images to call from database??
thanks in advance Enzo



