StanleyDev
Member
- Nov 13, 2011
- 35
- 0
so i was wondering if someone could make a php code to run an SQL query when the user clicks a button. I have written the sql query in php already i just have no clue how to excute it, also could someone tell me if this php code works? :
^^^^^^^^^ this code is to check that page for the user's username to use within this sql query:
^^^^^^^^ will this work?
PHP:
$Suser = ('"/userme.php"');
Code:
$id = mysql_query ("SELECT $Suser FROM users;");
^^^^^^^^ will this work?