Also tried this:
Code in index.php
PHP Code:
//Request the car details
$result = @mysql_query('SELECT make FROM cardetail');
$hlink = mysql_query($result);
while ($make = mysql_fetch_array($hlink))
{
echo "<a href=".$row['make'] .">";
}
echo ' <table>
<tr>
<td>' . $row['make'] . '</td>
<td><a href="products.php" target="_blank">' . $row['make'] . '</a></td>
<td>' . $row['model'] . '</td>
<td>' . $row['year'] . '</td>
</tr>
</table>';
if (!$result) {
exit('<p>Error performing query: ' . mysql_error() . '</p>');
}
I'm hoping to turn the query results into a page with an order option below.