php - how to write this sql statement -


I have a simple question how do I write this statement in php?

  $ q = "select t1.gebruikersnaam FROM as tbel_leden t1, instillingen as T2 WHERE t2.ledenid = t1.edenid and t2.livetracking = 1";  

I know that this is considered to be just a string but the error indicates that the unexpected t_variable and php administrator is not helping either.

Thanks

a php variable:

  denotes a dollar sign to denote $ q = "Select t1.gebruikersnaam from tbel_leden as T1, T2 WHERE t2.ledenid = t1.ledenid and t2.livetracking = 1 As the instellingen;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -