Could someone please help me with this looping problem that I am having...
I have a WHILE loop that iterates through the matching database records... and then inside of that loop I have a FOR loop... As you can probably already imagine, for every record there is in the database, it repeats the FOR loop that many times... I am baffled if I can think of a different way to code it though...
Here's what I have...
$query = "SELECT OrderTickets.*, Appointments.* FROM Appointments
LEFT JOIN OrderTickets ON Appointments.OrderTicketID = OrderTickets.OrderTicketID
WHERE Appointments.AppointmentStartDateTime BETWEEN '$BeginningDateTime' AND '$EndingDateTime'";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
{
for ($i=1;$i<25;$i+=0.25)
{
I'd appreciate any advice anyone can give me...

New Topic/Question
Reply



MultiQuote










|