Hi
I have a table on my database for orders. Among such things as first name and last name there is a date and time row for each order.
What I am trying to do is select the times and dates from all the orders and put them into associative arrays.
I don't know how to corrolate duplicate entries too. So a situation could be:
"There are two orders on the 24/06/2006 and one is at 7.30 and the other at 9.00".
Here is the code I have so far (it just gets the entries):
<?php
include("inc/conn.php");
$query = "SELECT * FROM orders";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo $row['date'] . "<br />";
echo $row['time'] . "<br />";
echo "<br /><br />";
}
?>