Im installing a little thing on my website, but when i try to acess the install file i get this error Parse error: syntax error, unexpected T_STRING in /home/habboone/public_html/TwistedValues/opendb.php on line 2 This Is My Code <?php $conn = mysql_connect (sql.byethost24.org, habboone_RARES, *******) or die ('Error connecting to mysql'); mysql_select_db(habboone_RARES); ?> PHP: (I Blocked out password ) Thanks in advance (Y)
Thanks very much! im not sure that u know this but it says Create systeminfo table failed when i try to install, is this to do with me or mysql ?
Assuming your database name and connection username are the same, try this code instead. <?php define('SQL_HOST','sql.byethost24.org'); define('SQL_USER','habboone_RARES'); define('SQL_PASS','yourpass'); // your password here define('SQL_DB','habboone_RARES'); $conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS)or die('Could not connect to MySQL database. ' . mysql_error()); mysql_select_db(SQL_DB,$conn); ?> PHP: Reply back with any errors your getting...
Thanks but i seem to have no luck,. im still getting the table error "Create systeminfo table failed" If you got some spare time i could send you the link to the addon, or something,