I get that error on Radio DJ PanelPHP Code:Parse error: syntax error, unexpected ';' in /home/sitename/public_html/panel/connect.php on line 10
I typed in the mysql details
How to fix it?
Im rubbish at mysql...
+Rep
I get that error on Radio DJ PanelPHP Code:Parse error: syntax error, unexpected ';' in /home/sitename/public_html/panel/connect.php on line 10
I typed in the mysql details
How to fix it?
Im rubbish at mysql...
+Rep
Has nothing to do with MySQL, it's a php error, post connect.php code.
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
PHP Code:<?
//set local variables
$dbhost ="localhost"; //Database Host
$dbuser ="sitename_????"; //Database User
$dbpass ="sitename_????"; //Database Password
$dbname ="sitename_????"; //Database Name
//connect
$db =mysql_pconnect($dbhost,$dbuser,$dbpass;
mysql_select_db($dbname,$db;
?>
you never closed the bracket on mysql select db...
also should be a space after the = on line before
Try This Edit what is blue to you DB details
<?
//set local variables
$dbhost ="localhost"; //Database Host
$dbuser ="Username"; //Database User
$dbpass ="Password"; //Database Password
$dbname ="Database Name"; //Database Name
//connect
$db =mysql_pconnect($dbhost,$dbuser,$dbpass;
mysql_select_db($dbname,$db )
?>
Did that, still the same error!Try This Edit what is blue to you DB details
<?
//set local variables
$dbhost ="localhost"; //Database Host
$dbuser ="Username"; //Database User
$dbpass ="Password"; //Database Password
$dbname ="Database Name"; //Database Name
//connect
$db =mysql_pconnect($dbhost,$dbuser,$dbpass;
mysql_select_db($dbname,$db )
?>
End of the both lines after //connect
you need the close the bracket
so it'd be
$db = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname,$db) ;
Change code to:
PHP Code:<?
//set local variables
$dbhost ="localhost"; //Database Host
$dbuser ="sitename_????"; //Database User
$dbpass ="sitename_????"; //Database Password
$dbname ="sitename_????"; //Database Name
//connect
$db =mysql_pconnect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname,$db);
?>
Kind Regards,
Guy__________________
Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
Tech-Hosts.co.uk.
Want to hide these adverts? Register an account for free!