hello there - been awhile since ive been about but im ready to crack on with my learning :)
kk i used to have this installed on my last "free" host and it worked fine
now im on a paid host (hosting24) it doesnt seem to want to work correctly..
kk i got my db back up and files backed up
i then proceeded to alter db connection details in all the files that needed it - uploaded all the files and imported my database...
now when i load my main page is get the following:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home/daztestc/public_html/design/users/class.Logare.php on line 64
Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in /home/daztestc/public_html/design/users/class.Logare.php on line 66
Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in /home/daztestc/public_html/design/users/class.Logare.php on line 265
i have double checked and then triple checked the exact spelling and password for the database but still refuses to connect. ive asked my host if all the required extensions are activated on my package and they confirmed they are - they even had a look at the files but as it wasnt a fault there end im left on a cold step now lol
lines 63-67 :
// if the connection is successfully established
if($conn = new mysqli($this->conn_datas['localhost'], $this->conn_datas['daztestc_testdaz'], $this->conn_datas['dj2403ms81'], $this->conn_datas['daztestc_daztest'])) {
$sql = "SET NAMES 'utf8'";
$conn->query($sql);
$this->conn = $conn; // add the connection in the $conn property
and lines 263-269 :
// if 0 returned rows, perform another Select for total users (when 'useron' is empty, the "nrusers" also returns 0)
$sql = "SELECT `nume` AS last, (SELECT count(*) FROM `users`) AS nrusers FROM `users` WHERE `rank`>0 ORDER BY `id` DESC LIMIT 1";
$result = $this->conn->query($sql);
if($result->num_rows>0) {
$rand = $result->fetch_assoc();
$re['total'] = $rand['nrusers'];
$re['last'] = '<a href="'.$this->dir.$this->file_log.'?usr='.$rand['last'].'" title="'.$rand['last'].'">'.$rand['last'].'</a>';
does anybody have a suggestion on where i would go next in order to work towards sorting this problem please?
sorry if ive posted this wrong in anyway - it has been awhile i must admit..
any other info you might require just let me know :D
thanks in advance DaniWeb ;)