Code: Show/Hide $limit = $HTTP_GET_VARS['limit'];
$sql = "GET * FROM table LIMIT " . $limit; |
| Cyan~Fire wrote: |
| .. unrelated security concern. |
Code: Show/Hide // Assume $article_id is set by the URL
if ($article_id == 0) { $guest_ok = true; } if (!$guest_ok) { // Check user is authenticated using a function defined elsewhere check_auth(); } |
| Quan Chi2 wrote: |
| I don't plan on hacking anyone. I plan on helping out a friend with his website, and if you know just as much as I do, then you know that its easy for someone to perform an sql injection on your website. Thats what my friend wants to prevent. |
| Mine GO BOOM wrote: |
| ...parse all input from $HTTP_POST ... |