I currently have the following table:
CREATE TABLE akileine_cooling (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
product_number TEXT,
product_title TEXT,
product_desc TEXT,
product_price FLOAT(8,2),
product_image VARCHAR(50),
FULLTEXT KEY product_title(product_title)
)TYPE=MyISAM;
I would like the "Product Title" text to show up in the table as a hyperlink. How do I do this, I am using PHP to display the table.
Here is a snippet of my script:
echo "<div style='margin-left: .lin'>
<h2 align='center'><font color=#808080 face=Arial, Helvetica, sans-serif>Akileine Cooling and Soothing Foot Products</h2>
<h4 align='center'>(Select product for additional information and to make purchase)</h4>\n";
echo "<form action='showitem.php' method='post'>\n";
echo "<table cellpadding='3' border='1'>";
$counter=1;
function imageSize($width, $height, $percent) {
if(($percent > $width) && ($percent > $height)){
}else{
if($width > $height){
$ratio = $percent / $width;
}elseif($height > $width){
$ratio = $percent / $height;
}elseif($width == $height){
$ratio = $percent / $width;
}
$new_width = $width * $ratio;
$new_height = $height * $ratio;
return "width=\"$new_width\" height=\"$new_height\"";
}
}
while ($row = mysql_fetch_array($result))
{
$image_url = "http://www.ppshealthcare.com/images/$row[product_image]";
$picture = getimagesize("$image_url");
$picture_size = imageSize($picture[0], $picture[1], 150);
echo "<tr><td valign='top' width='15%'>\n";
echo "<input type='radio' name='interest'
value='$row[product_number]'\n";
if ( $counter == 1 )
{
echo "checked";
}
echo "><font size='+1'><b>$row[product_number]</b></font>
</td>
<td>$row[product_title]</td>
<td>$row[product_desc]</td>
<td>$row[product_price]</td>
<td><img src=\"/images/$row[product_image]\" $picture_size></td>
</tr>";
$counter++;
}
echo "</table>";
echo "<p><input type='submit' value='Select Product'>
</form>\n";
Could someone PLEASE help me figure out what to change, I do not want to use the radio buttons.
Thanks!!
Allie