PHP display search results in table?

Kelly H

New member
Here is the code i have

<?php
mysql_connect ("*********", "*************","**************") or die (mysql_error());
mysql_select_db ("**************");

$term = $_POST['term'];



$sql = mysql_query("select * from Products where Color like '%$term%' or Title like '%$term%' or description like '%$term%'");

while ($row = mysql_fetch_array($sql)){

echo ''.$row['Picture'];

echo '<br/>'.$row['description2'];

echo '<br/> '.$row['Title'];

echo '<br/><br/>';

}



?>


I need the item to be displayed like this

-------------------------------------------------
| Picture | title here |
| | |
------------------------------------------------
| |Description2 here |
-------------------------------------------------


How do i get the results to display like this?
 
Back
Top