Hi there, am new in hosting. I tried hosting my website but in vain. All my php files load an empty page,no errors.
<?php $connect_error = 'Sorry we couldnt connect you to the server'; mysql_connect('localhost', 'kipcubic', '') or die($connect_error); mysql_select_db('id572967_lr') or die($connect_error); >@kipcubic Try again after downgrading your php version to 5.4(From settings – general) as you’re using deprecated mysql function.
Thanks. But now the database is not connecting…
Use correct dbname, dbuser and dbpassword !!!
post original dbconfig script.
Chk this:-
This is php script;
<?php $connect_error = 'Sorry we couldnt connect you to the server'; mysqli_connect('localhost', 'id572967_mydb','******') or die($connect_error); mysqli_select_db('id572967_lr') or die($connect_error); I am using the these details; i.e in which my dbname, dbuser are in the imageI see now your are using “mysqli” instead of “mysql”.
So Upgrade your php to 5.6 or higher.
and use this to connect:-
$connect_error = "Sorry we couldnt connect you to the server";
mysqli_connect("localhost","dbuser","dbpassword","dbname") or die($connect_error);
Do post back or pm me if you’ve any issues!!!