Hi All ,
am geting this error
Parse error: syntax error, unexpected ';' in /home/a2856241/public_html/plus1.php on line 10
whith this code,
<?php
$con=mysqli_connect("host1","djslim","opensaysme","missionbase1");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"UPDATE table1 SET score=score+1 WHERE id=['$id'])";
mysqli_close($con);
header('Location: ./LaunchControl.php');
exit;
?>
I have changed it to read "WHERE id='1'" and this works,
any ideas ?
thanks.