Here's the logic:
If records exist in the database with the type of "Porsche_Cabriolet" then it prints what records have that type. Otherwise, it should print "None in inventory at this time"
I can't translate this into PHP 🙁 Any suggestions?
$result = mysql_query("SELECT * FROM inventory WHERE Sold = '0' AND Type = 'Porsche_Cabriolet' ORDER BY Year DESC, Miles ASC" , $db);
print " <center><img src='images/porsche_cabriolet.gif'><BR>\n";
while($myrow = mysql_fetch_array($result, MYSQL_ASSOC))
{
print " <table border=0 width=100%>\n";
print " <tr>\n";
print " <td height='2' rowspan='5'>\n";
print " </td>\n";
print " <td colspan='3' height='2'>\n";
print " </td>\n";
print " </tr>\n";
print " <tr>\n";
print " <td width='38%' height='17'>\n";
print $myrow['Year'];
print " </td>\n";
print " <td width='22%' height='17'>\n";
print $myrow['Miles']." Miles";
print " </td>\n";
print " <td width='22%' height='10' rowspan='3'>\n";
print " </td>\n";
print " </tr>\n";
print " <tr>\n";
print " <td width='38%' height='19'>\n";
print $myrow['Model'];
print " </td>\n";
print " <td width='22%' height='19'>\n";
print $myrow['Price'];
print " </td>\n";
print " </tr>\n";
print " <tr>\n";
print " <td width='38%' height='17'>\n";
print $myrow['Exterior_Color']." / ".$myrow['Interior_Color'];
print " </td>\n";
print " <td width='22%' height='17'>\n";
print $myrow['Stock_Number'];
print " </td>\n";
print " </tr>\n";
print " <tr>\n";
print " <td colspan='3' height='2'>\n";
print " </td>\n";
print " </tr>\n";
}
print "</table>\n";
mysql_free_result($result);