Page 1 of 1

Private messageing mysql isnt working?

Posted: Wed Mar 20, 2013 10:32 am
by pirateben
so im all the way to video 10 and i dont get why im getting this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX(`conversation_messages`.`message_date`) > `conversations_members`.`conversat' at line 4
here the code i have for that part
[syntax=sql] MAX(`conversation_messages`.`message_date`) AS `conversation_last_reply`
MAX(`conversation_messages`.`message_date`) > `conversations_members`.`conversation_last_view` AS `conversation_unread`
[/syntax]
the first line works but why dosnt the second i check the nameing 10 time or something lol it should be the same right? i dont get it

Re: Private messageing mysql isnt working?

Posted: Wed Mar 20, 2013 2:13 pm
by Temor
Could you post the entire SQL statement and not just a part of it?

Re: Private messageing mysql isnt working?

Posted: Wed Mar 20, 2013 9:58 pm
by pirateben
ya just the > part dosnt work

Re: Private messageing mysql isnt working?

Posted: Wed Mar 20, 2013 11:07 pm
by Temor
I don't think I understand your answer...

I think you've missed a comma on the first line.

[syntax=sql] MAX(`conversation_messages`.`message_date`) AS `conversation_last_reply`,
MAX(`conversation_messages`.`message_date`) > `conversations_members`.`conversation_last_view` AS `conversation_unread`[/syntax]

Like so.

Re: Private messageing mysql isnt working?

Posted: Wed Mar 20, 2013 11:15 pm
by pirateben
thanks so much i didnt think you used , in mysql in between lines only on like. select from valuse (x,x,x) i would of been looking forever for something i missed spelled or something


also vary new to this all