Hi I am trying to write a piece of code that will enable me to get one peice of information based on the last piece of information returnted from a mysql db.
Sounds unclear but here is what I mean
$query = "SELECT * FROM timetable where departure = 'EGNT' ORDER BY RAND() Limit 1 ";
it returns the data EGLL as the next departure for example so I now wish to see random items with a departure from EGLL.
Now I am wondering is there a faster way to create maybe 6 of these situations as aposed to having to right 6 queries based upon the departure result of the last ie all in one query based upon the result of the last or am I confined to seperate queries on this on.
Thanks for taking the time to read this post have a great weekend
kind regards
lee