Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP $GET Re: PHP $GET

#66812

It’s $_GET and don’t forget to addslashes() to anything you using a database query.

Code:
$page = $_GET[‘pages’];

SELECT * FROM database WHERE title=’ . addslashes($page) .’

http://php.net/manual/en/reserved.variables.get.php
http://uk3.php.net/manual/en/function.addslashes.php