MySQL Forums
Forum List  »  PHP

How to use $POST variable in WHERE clause
Posted by: Ken Wheeler
Date: February 18, 2021 07:23AM

From a simple SELECT statement like this:

$sql = "SELECT user_id, username, user_email FROM table_users WHERE user_id>=49 && user_id<=100";

I would like to use $POST variables in the WHERE clause but I'm not sure of the syntax. Would appreciate some help please?

Options: ReplyQuote

Written By
How to use $POST variable in WHERE clause
February 18, 2021 07:23AM

Sorry, only registered users may post in this forum.

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.