MySQL Forums
Forum List  »  PHP

Re: How 2 use PHP variable in WHERE clause ?
Posted by: Peter Brawley
Date: March 01, 2018 07:30PM

If acct_id is a char variable, it needs to be quoited eg ...

"SELECT * from accounts WHERE crm_accounts.acct_id='$acct_id'"
"

Options: ReplyQuote


Subject
Written By
Posted
Re: How 2 use PHP variable in WHERE clause ?
March 01, 2018 07:30PM


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.