$connect= mysql_connect("localhost","root")
or die("Could not connect to database in localhost !");
$queryresult=mysql_select_db("testdiw")
or die("Could not select that database !");
$id = (int)$_GET['id']; // have to fetch $_GET['id'] into $id BEFORE the query is created
$sqlquery = "SELECT * FROM mktime WHERE id = '$id'";
$queryresult = mysql_query($sqlquery) or die(" Could not execute mysql query !");
// to show your results in a table you fetch the rows one at a time, then output a table row
echo '<table>';
while ( $row = mysql_fetch_assoc($queryresult) )
{
echo '<tr><td>', $row['date_string'], '</td></tr>';
}
echo '</table>';
If you have 3 rows in your result, then you can also use something like this, but I prefer using the associative result for clarity
while ($row = mysql_fetch_row($queryresult) )
{
echo '<tr><td>', $row[0], '</td><td>', $row[1], '</td><td>', $row[2], '</td></tr>';
}
That should get you going. Won't be around for a while but I'm sure somebody else will help if you need it.
Well done Parappa - that's eeet for today!