I have a simple php script that I want to use with GET
mysite.com/script.php?site=value&plug=value
site will be a domain name
plug will be a URL
It works if I only pass 1 value:
mysite.com/script.php?site=value
But it fails when using both values. Get forbidden error.
here is the code
<?php
include("dbconnect.php");
$sitex = $_GET["sitex"];
$plugx = $_GET['plugx'];
$query1 = "UPDATE sites SET `out` = `out` +1, `totout` = `totout` +1 , `balance` = `balance` + 1 WHERE `site` = '$sitex' ";
mysql_query($query1) or die('Error, insert query failed. ERROR: '. mysql_error());
header("Location: $plug"); /* Redirect browser */
?>
Im guessing this is a pretty easy fix.
Thanks.