Hi Rax,
I have been installing Cacti on my Debian and I had many errors provided by MySQL saying "Invalid resource on mysql index...".
After exploring the code of Cacti I figured out that cacti wasn't using the "id" parameter in the URL, but the one I use on commentcamarche.com...
Then in order to fix this kind of tiny bug you should add for every parameter that you pass by URL in your config.php file or in whatever file used by all your scripts :
parameter = $_GET[parameter]
For your "id" parameter it'll be :
$id = $_GET["id"];
Thank you for your PHPware ;-)
Bug : Cookies conflicts
Moderators: Developers, Moderators
Actually, since you sometimes use POST, the code is a little bit more complicated :
if (isset($_GET["id"])) $id = $_GET["id"];
else if (isset($_POST["id"])) $id = $_POST["id"];
else unset($id);
either you (hard-)change each parameter sent by POST or GET in the code, or you put some code like this one in a common header.
Good luck
if (isset($_GET["id"])) $id = $_GET["id"];
else if (isset($_POST["id"])) $id = $_POST["id"];
else unset($id);
either you (hard-)change each parameter sent by POST or GET in the code, or you put some code like this one in a common header.
Good luck
Who is online
Users browsing this forum: No registered users and 3 guests