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
Software Development
Programming
Programming Q&A
Javascript And PHP Ajax
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="CosmoPeak" data-source="post: 412373" data-attributes="member: 68352"><p>If you don't understand it, stick with what you have for now until you have time to learn about JSON, it should work fine. If you're going to use this for production, make sure you use prepared statements or at least filter the input properly.</p><p></p><p>[code]</p><p>$q = $db->assoc($db->query("SELECT * FROM users WHERE id = '{$id}'"));</p><p>[/code]</p><p></p><p>This is subject to SQL injection.</p></blockquote><p></p>
[QUOTE="CosmoPeak, post: 412373, member: 68352"] If you don't understand it, stick with what you have for now until you have time to learn about JSON, it should work fine. If you're going to use this for production, make sure you use prepared statements or at least filter the input properly. [code] $q = $db->assoc($db->query("SELECT * FROM users WHERE id = '{$id}'")); [/code] This is subject to SQL injection. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Javascript And PHP Ajax
Top