Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
how do I execute an SQL query in PHP
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="StanleyDev" data-source="post: 71003" data-attributes="member: 9151"><p>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? :</p><p> </p><p>[PHP] $Suser = ('"/userme.php"');[/PHP]</p><p>^^^^^^^^^ this code is to check that page for the user's username to use within this sql query:</p><p> </p><p>[CODE]$id = mysql_query ("SELECT $Suser FROM users;");[/CODE]</p><p> </p><p>^^^^^^^^ will this work?</p></blockquote><p></p>
[QUOTE="StanleyDev, post: 71003, member: 9151"] 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? : [PHP] $Suser = ('"/userme.php"');[/PHP] ^^^^^^^^^ this code is to check that page for the user's username to use within this sql query: [CODE]$id = mysql_query ("SELECT $Suser FROM users;");[/CODE] ^^^^^^^^ will this work? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
how do I execute an SQL query in PHP
Top