I'm having problem with hosting

I’m using free hosting on awardspace, but my database is not connecting. Can someone help please?

1 Like

@mr.babra Can you share your specific error message and maybe the process you went through to attempt to connect your DB?

Also, if you get the chance, read this as it has helped me in the past when creating questions for forums.

/srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 21

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 22

Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 3

Warning: mysqli_query(): Couldn’t fetch mysqli in /srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 18

Warning: mysqli_query(): Couldn’t fetch mysqli in /srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 21

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /srv/disk13/2474719/www/justjerry.atwebpages.com/index.php on line 22