0

Is the error i get trying to connect to my db.

Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'http://www.fleethabari.com/' (1) in /home/www/fleethabari.com/inc/config.php on line 2
Unable to select database: Unknown MySQL server host 'http://www.fleethabari.com/' (1)
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line 8


$conn=mysqli_connect("http://www.xxx.com/","xxx","xxx","xxx");
    // Check connection
    if (mysqli_connect_errno($conn))
      {
      echo "Unable to select database: " . mysqli_connect_error();
      }
    mysqli_close($conn);

But my app is written in mysql and not in mysqli, i hope this is not a problem

2
Contributors
4
Replies
12
Views
3 Years
Discussion Span
Last Post by pritaeas
0

when i use

localhost

this what i get

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'cambixgh'@'localhost' (using password: YES) in /home/www/fleethabari.com/inc/config.php on line 2
Unable to select database: Access denied for user 'cambixgh'@'localhost' (using password: YES)
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line 8

only difference is this

 Unable to select database: Access denied for user 'cambixgh'@'localhost' (using password: YES)
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.