Ok so Ive been working with PHP for a while now but now trying to go beyond the basics, Im building an admin panel for example for a database of cars, and Im intending for the user to be able to scroll down a table of entries populated by the database.
This is what I have so far
Example page - cars
<header>
<?php
include("includes/con.php");
$result = mysql_query("SELECT * FROM car ORDER BY price DESC");
?>
</header>
<body>
<table border='1'>
<tr>
<th>Type</th>
<th>Fule</th>
<th>Doors</th>
<th>Colour</th>
<th>Price</th>
</tr>
<?
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['type'] . "</td>";
echo "<td>" . $row['fuel'] . "</td>";
echo "<td>" . $row['doors'] . "</td>";
echo "<td>" . $row['colour'] . "</td>";
echo "<td>" . "£" . $row['price'] . "pppw" . "</td>";
echo "</tr>";
}
</body>
Now I was to insert another column for 'more info' which will take go to 'details.php' for say example Aston Martin with an ID of 2 or Ferrari with an ID of 5
Any ideas as Ive tried a number of different things which didnt work, probably as none of the examples I found were similar to my problem so I was trying to simplify and re-engineer them to my project, I can create a GET rule within to search for specific criteria such as blue or red on the browse page but not so it will pull the ID and pass it to the next page.