# Parse error: syntax error, unexpected T\_CONSTANT\_ENCAPSED\_STRING

**URL:** <https://forum.kirupa.com/t/parse-error-syntax-error-unexpected-t-constant-encapsed-string/284500>\
**Category:** programming\
**Created:** [March 19, 2009, 6:11pm UTC](https://forum.kirupa.com/t/parse-error-syntax-error-unexpected-t-constant-encapsed-string/284500 "2009-03-19T18:11:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nupur2609](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@nupur2609](https://forum.kirupa.com/u/nupur2609)\
**Post date:** [March 19, 2009, 6:11pm UTC](https://forum.kirupa.com/t/parse-error-syntax-error-unexpected-t-constant-encapsed-string/284500/1 "2009-03-19T18:11:35Z")

</div>

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
