MySQL Forums
Forum List  »  PHP

Re: how to use PHP variable in MYSQL query?
Posted by: Matt Crisp
Date: February 12, 2009 03:34AM

simple use

$sql = "SELECT * FROM table WHERE payment_status = '$status' OR payment_status = '$otherstatus' ORDER BY $column ASC";

Options: ReplyQuote


Subject
Written By
Posted
Re: how to use PHP variable in MYSQL query?
February 12, 2009 03:34AM


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.