Hi,
i am building a small forum site as my final year project & stuck in a very trivial problem.
I have a table which are varchar type of data & i am trying to fetch data from table based on some condition.
$query = 'select reply_Id, post_Id, replied_by, reply, date_of_reply from reply_info where reply_info.post_Id ='. $x;
as $x='pi_1';
here $x has string value & post_Id in table has varchar value & has the same value (for that column in table) as given to $x, but still this query execution is failing. it returns false for result.
Now if i dont give any where clause query fetches all the rows of table. I tried this to confirm if connection to data base is working fine.
this is really urgent..i have already wasted an hour in this :-(
thanks in advance.