11-20-2016, 04:54 AM
I'm trying to validate a form against the user's id in the validate class, using something like the following:
$query = "SELECT * FROM users WHERE username = '{$value}' AND id = {$id}";
What's the proper syntax for grabbing the id within this class?
$query = "SELECT * FROM users WHERE username = '{$value}' AND id = {$id}";
What's the proper syntax for grabbing the id within this class?