Sticking variables in a MySQL Query?
Posted: Sun Nov 24, 2002 6:36 pm
I'm using this code to authenticate permission in editing a certain news portion of the site.
That $name comes from a query string like this:
Any idea on what to replace '{$name}' with?
Code: Select all
$sql = "select id from EGN_User_Sites where user_name = '$EGNewsUser' and '{$name}' = '1'";Code: Select all
http://mysite.com/newsprogram/editnews.php?action=add&name=butt