I need to pass the SELECT statement below to another page. When i pass it as below it works fine, however the statement is going to be different every time so i wanted to assign the SQL to a variable.
<input type=hidden name="query" value="SELECT * FROM tblHousing">
i've tried this for hours.....
$sql = "SELECT * FROM tblHousing";
<input type=hidden name="query" value="<?php echo $sql ?>">
if anyone can tell me whats wrong i'd be very grateful cause i have a deadline of tomorrow to meet...
thank you.