Hi
I have a PHP script which receives 4 variables from a flash file and inserts tha data into the database.But I am getting the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /data/15/1/139/105/1791268/user/1938265/htdocs/baseline/DBStore.php on line 34
My code is as below:
<?php
/******** CHANGE YOUR DATABASE SETTING *******/
$dbhost = ‘205.178.146.76’; // database host
$dbuser = ‘user’; // database username
$dbpass = ‘pwd’; // database password
$dbname = ‘DBstore’; // database name
$mysql = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname);
/* VARIABLES FROM FLASH */
$tVF=$_POST[‘VF’];
$tVB=$_POST[‘VB’];
$tAF=$_POST[‘AF’];
$tAB=$_POST[‘AB’];
$tTotal=$_POST[‘Total’];
/INSERT INTO DB/
$Query=“INSERT INTO Score( ID.VF, VB, AF, AB, Final )VALUES (”",’".$tVF."’, ‘".$tVB."’, ‘".$tAF."’, ‘".$tAB."’, ‘".$tTotal."’)";
$answer=$_POST[‘VF’];
/* ECHO TO FLASH */
if(mysql_query($Query))
{
$answer='ok';
echo "answer=".$answer;
}
else
{
$answer=‘nope’;
echo "answer=".$answer;
}
?>
Can anyone please Help me!!
Thanks