MySQL Forums
Forum List  »  PHP

Re: how to use PHP variable in MYSQL query?
Posted by: Mike
Date: December 20, 2008 04:57PM

This has been stumping me for days. I pounded my head against the wall for 6 hours yesterday trying to get a similar code to work. I came to the conclusion that i couldn't use $_POST variables in a sql query for whatever reason. I managed to get a couple of queries to work by passing the post variable to another variable. I'm still having problems though with this GRAVE ACCENT thing though. I have working code on one page, and when i use it on another page it won't work without messing with the quotation marks, etc.

Very strange. Seems to me this is way more complicated than it really need to be. When i find somekind of definite answer or solution to this problem i'll post. For now, i'm just as stumped as the rest of you.

Options: ReplyQuote


Subject
Written By
Posted
Re: how to use PHP variable in MYSQL query?
December 20, 2008 04:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.