Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Replace variables in resulting query
July 25, 2006, 4:58 pm
rate this thread
I have the results of a query that as follows. I want to replace $prod
with the value of the variable - how can I get php to do that?
Select total_errors as num from ftr_summary_data where
ftr_product_platform= $Product and Project=$Project'
Select total_errors as denom from ftr_summary_data where
ftr_product_platform= '$Product' and Project='$Project'
Re: Replace variables in resulting query
If your query is in quotes, here is what it should look like:
"SELECT tota_errors AS num FROM ftr_summary_data WHERE
ftr_product_platform = ".$Product." AND Project = ".$Project."
I hope this helps.
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum