[SOLVED]: How to combine a php variable in a sql query
Posted: Wed Jan 06, 2010 12:32 am
Hey guys!,
Im currently coding php and have to produce a report. now i have this query that needs to have a condition that is stored in a variable...
here's a part of my code/query:
The first line produces an error..
Any ideas is very much appreciated!
Im currently coding php and have to produce a report. now i have this query that needs to have a condition that is stored in a variable...
here's a part of my code/query:
Code: Select all
, (SUM(SHH.REG) * (SHH.DailyRate/".$regwhours.")) TotalDailyRate
, SUM(SSH.DailyRateReg) GrandDailyRate
Any ideas is very much appreciated!