# Syntax error

**URL:** <https://forum.kirupa.com/t/syntax-error/316625>\
**Category:** Uncategorized\
**Created:** [November 27, 2010, 9:40am UTC](https://forum.kirupa.com/t/syntax-error/316625 "2010-11-27T09:40:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freshy](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@freshy](https://forum.kirupa.com/u/freshy)\
**Post date:** [November 27, 2010, 9:40am UTC](https://forum.kirupa.com/t/syntax-error/316625/1 "2010-11-27T09:40:35Z")

</div>

\*\*Hi, I have this error in the browser.

Parse error\*\*: syntax error, unexpected T\_STRING in **C:\xampp\htdocs\connectMySQL.php** on line \*\*10

My code:  
\<?php  
$host=“localhost”;  
$db=“kirupa”;  
$user=“root”;  
$pass="";  
$connect=mysql\_connect($host,$user,$pass) or die (mysql\_error());  
mysql\_select\_db($db,$connect);  
echo “Database selected:\<b\>{$\_POST[‘database’]}\</b\>\<br\>  
query:\<b\>&query\</b\>Results\</h3\>\<hr\>”;  
INSERT INTO MEMBERS(name, email,website)  
VALUES(“ali”,666@yahoo.com,“[www.members.com](http://www.members.com)”)  
?\>

How do I correct it ? Hoping for helpful hand.

\*\*
