I am storing my query string with dynamic php variables in mysql DB and how can i retrive with actual values -


i stored query in table.: "select * tbl_customer bookingdate=$date"

$tableresult[$i]['condition'] = "select * tbl_customer bookingdate=$date";  $date = date('y-m-d');  $anothervariable = $tableresult[$i]['condition'];  echo $anothervariable; 

this echo prints same string. how can following result :

select * tbl_customer bookingdate=2014-06-10 

is solution available?

$date = date('y-m-d'); $tableresult[$i]['condition'] = "select * tbl_customer bookingdate=$date"; $anothervariable = $tableresult[$i]['condition']; echo $anothervariable; 

try this


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -