<?php
// Grab the data from our people table
$sql = 'SELECT * FROM `item` ORDER BY `item`.`id` DESC LIMIT 0, 30 ';
$result = mysql_query($sql) or die ("Could not access DB: " . mysql_error());
while ($row = mysql_fetch_assoc($result))
{
echo "<div class=\"picture\">";
echo "<p>";
// Note that we are building our src string using the filename from the database
echo "<center><img src=\"images/" . $row['filename'] . "\" alt=\"\" /><br />";
print(" ID No = ".$row['id']."<br>");
print(" Name = ".$row['name']."<br>");
print(" Description: ".$row['description']."<br>");
print(" Price: "."<b>P</b>".$row['price'].".00"."<br>");
print(" Sizes: ".$row['small']." ".$row['meduim']." ".$row['large']." "."<br>");
echo "Item Type: ".$row['type']."<br>";
echo "<form action=""><input type="radio"></form>"<br>";
print("<br>"."<br>"."<br>");
echo "</p>";
echo "</div>";
}
?>
here is the errorParse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\wamp\www\order1.php on line 121i wanted to add a radio or checkbox in every retrieve of data from the database, and the checkbox would have the value or the name of its data, please help me... i dont know what to do next...

New Topic/Question
Reply




MultiQuote






|