Syntax error

Hi Guys im fairly new in creating websites, I am trying to install Etano script package, I have done all steps but when I am in PHP myadmin, under SQL, I am trying to place the script which they told me to put in $dbh=mysql_connect (“hostname”, “username”, “<PASSWORD HERE>”) or die ('I cannot connect to the database because: ’ . mysql_error());mysql_select_db (“databasename”); but comes up with the following msg:

Error MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Perl $dbh=mysql_connect (“localhost”, “etano”, “<Password633>”) or die (‘I canno’ at line 1

Does anyone know what syntax I should be using?

cheers

If the script is using the mysql_* extension then I very strongly recommend you look for another script. The old mysql_* extension which the Etano script appears to use has been deprecated as of version 5.5 of PHP and will very likely be removed from version 5.6 of PHP. Any script should now be using either the mysqli_* (MySQL Improved) extension or more preferably PDO.