Firstly, I think Dropkick is a good thing - and the developer Michael has been very patient at trying to find a solution for me.
But unfortunately, my config.php file is not working on 2 of my 3 sites.
All files are uploaded to root directory including htaccess and config files.
I have uninstalled, reinstalled, made new config files, checked with my hosting people four times and they can’t see that I have made any mistakes either.
I have even tried to duplicate from the site it actually worked on to the new sites, and nothing works. On all three sites php is 5.4.
When I put the code into a code tester it tells me that two lines of code are deprecated in current php, but as I am a designer not a coder, I have no idea what that means.
The code base file to change is:
<?php //database details error_reporting(0); $host = 'localhost'; $user = 'username'; $password = 'password'; $database = 'database name'; R::setup('mysql:host='.$host.';dbname='.$database.'',''.$user.'',''.$password.''); $mysqliConnection = **mysqli**_connect($host, $user, $password); ?>My hosting told me that the extra ‘i’ in the last line should be removed for my php. But that’s all.
$mysqliConnection = mysql_connect($host, $user, $password);
An example of my code is:
<?php //database details error_reporting(0); $host = 'mysql-6.domainname.com.au'; $dbname = 'data01_domainname_com_au'; $username = 'mydata1234'; $password = 'AeOfepAt'; R::setup('mysql:host='.$host.';dbname='.$database.'',''.$user.'',''.$password.''); $mysqliConnection = **mysql**_connect($host, $user, $password); ?>I am at a loss to know what is not working.
Are there any coders who can shed some light on what I should be checking for?
Should there be double quotes instead of single quotes etc?
Thanks for any help.