Forum Moderators: coopster

Message Too Old, No Replies

MySQL Query Returning Empty Column

Using LEFT JOIN

         

inveni0

3:31 pm on Jul 7, 2007 (gmt 0)

10+ Year Member



Here's my code:

$query_get_machine = sprintf("SELECT machines.ID, machines.NotifyID, machines.Name, notify.ID, notify.`Data` FROM machines RIGHT JOIN notify ON machines.notifyID = notify.ID WHERE machines.ID = %s", GetSQLValueString($colname_get_machine, "int"));

Can anyone tell why the notify.`Data` column might be returned empty? All others display as they should.

Thanks!

inveni0

6:53 pm on Jul 7, 2007 (gmt 0)

10+ Year Member



Sorry...stupid mistake. Got it sorted.