Thanks for the reply bastein.
I have changed the code to this (with the help from your last post):
$query= "SELECT pm_messages.pm_message_title AS title, date_format(pm_messages.pm_message_date, '%D %b %T') AS date, pm_milestones.pm_milestone_title AS title, date_format(pm_milestones.pm_milestone_subdate, '%D %b %T') AS date
FROM pm_messages inner join pm_milestones on pm_messages.pm_project_id = pm_milestones.pm_project_id ORDER BY date DESC";
$query_messages_today = mysql_query($query) or die ("Can't complete query ".mysql_error());
I don't get any errors now but the output is not quite right.
I'll give an example of what i would like to have happen. In the pm_messages table i have two rows of data, eg;
1,1,1,4,Hows it coming along?,Just wanted to know if you had time to finish the site,20040510205716
3,1,1,4,Just checking,Any other updates at this stage?, 20040510205527
and in the pm_milestones table i have the following:
1,1,Complete Entire Database Structure,2004-05-30,8, 20040510205616
(these comma seperated values are associated to the table structures posted earlier).
What i want to do is get all three of these results outputted because they all have a pm_project_id of 1 and i also want to order them by their timestamp, so the results should look like (assuming i am just getting the title from each row):
Hows it coming along?
Complete Entire Database Structure
Just checking
Would you have anymore ideas, i know i don't 🙂
Does that make sense? If not i'll try and explain it in more detail.
Cheers,
macca