Hello,
I get the following error message:
Parse error: parse error, unexpected $ in /usr/local/psa/home/vhosts/pc-prices.co.uk/httpdocs/admin/pricechange.php on line 17
My code is:
<?php
include("db.php");
$db = @mysql_connect("$dbhost", "$dbuser", "$dbpasswd");
$dbr = @mysql_select_db("$dbname",$db);
if ($price == ""){
echo "<center><br>You have not entered a correct value for the price<br><br><a href=\"javascript:history.go(-1)\">Back</a></center>";
exit;
}
$sql = "UPDATE admin SET outrate='$price'";
$result = mysql_query($sql, $db);'
print mysql_error();
echo "Thank You,<br><br>You have changed the out going click thru rate";
?> //line 17
I would be highly grateful if someone could help please