Re: Fatal error: Call to undefined function: mysqli_connect() in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gary wrote:

> Ok, I know how to access the php.ini for the local host, is this the
> same file that would control the remote server?  Or do I need to look
> for it on my remote host?

The php.ini you need to look at is the one one the server where you're
running your PHP code.  The remote host is just your database server I
assume?

Your code does look a little odd though:

$dbc = mysqli_connect('$hostname','$username','$password')
or die('Error connecting to MySQL server');
mysql_select_db('$usertable');

I would have written this as:

$dbc = mysqli_connect($hostname,$username,$password,$usertable)
or die('Error connecting to MySQL server');


/Per


-- 
Per Jessen, Zürich (10.7°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux