How do I connect to my MySQL database?
A simple php script to open a connection to a database
$dbhost = 'localhost';
$dbuser = 'db username';
$dbpass = 'db password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'db name';
Save this as
.php and then whenever you want to access the database, just add
to the top of a php script and the database can be queried using standard sql commands.
Was this answer helpful?
File manager has a 5mb memory limit which restricts the number of files that can be displayed if...
If your account type includes MySQL databases, then log in to your Online Control Panel Control...
There are numerous ways to upload a MySQL database, we would strongly recommend trying methods 2...
In order to keep your files secure against various threats, File Manager requires that your...
To view, add, amend or remove email addresses from your distribution lists simply log into your...