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
Post a Comment