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

2009-03-14 Thread Per Jessen
Gary wrote: I am recieving a fatal error trying to connect to my server/mysql. This is my first attempt at connecting to a remote server, have been successful with localhost (apache). I had the variation of not putting the hostname others into a variable, but that did not work either. I

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

2009-03-14 Thread Daniel Brown
On Sat, Mar 14, 2009 at 13:41, Per Jessen p...@computer.org wrote: Check if the mysqli extension has been loaded. Also check this page: http://us.php.net/manual/en/mysqli.connect.php For some of the mirrors, trying to hit http://php.net/mysqli_connect erroneously takes you to

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

2009-03-14 Thread Gary
Thanks for your quick reply, but I do not know what that means... Where would I find this out and how would I accomplish this if it is not done? Thanks again. Per Jessen p...@computer.org wrote in message news:gpgq8i$h5...@saturn.local.net... Gary wrote: I am recieving a fatal error trying

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

2009-03-14 Thread Per Jessen
Gary wrote: Thanks for your quick reply, but I do not know what that means... Where would I find this out and how would I accomplish this if it is not done? Thanks again. Hi Gary see what phpinfo() says - if the extension is loaded, it'll show up there. To load the extension, add

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

2009-03-14 Thread Gary
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? Again, thanks for your help. Per Jessen p...@computer.org wrote in message news:gpgr6o$hc...@saturn.local.net... Gary wrote:

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

2009-03-14 Thread Per Jessen
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

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

2009-03-14 Thread Gary
I had the code written the way you suggested, but changed it to the way the hosting company suggested. I am unclear. I have php 5.2.8.8 on my local machine, I also have MySQL 5.1.30 set up locally as well. I am using godaddy.com as a host. I assumed that the php was running on the host

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

2009-03-14 Thread Jan G.B.
Gary, you can check this by either creating a file containing this: ?php phpinfo(); ? and putting it up on your webserver, then open in with your browser, or you could look at the output of php -i | less on the command line. After you enabled the mysqli extension on your host, you might change

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

2009-03-14 Thread Jan G.B.
2009/3/14 Jan G.B. ro0ot.w...@googlemail.com: One side node.. you should apply addslashes() also to $_SERVER['REMOTE_ADDR'), because an evil person could manipulate the value of that variable to execute SQL-Injections. forget that part - i didn't see that this var is only used in the email,

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

2009-03-14 Thread Per Jessen
Gary wrote: I had the code written the way you suggested, but changed it to the way the hosting company suggested. I think your hosting company might be smoking something they shouldn't be. Your way is the right one. I am unclear. I have php 5.2.8.8 on my local machine, I also have MySQL

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

2009-03-14 Thread Gary
Ok.. I have added [MySQL] ;Gary, this is the code from the forum. extension=mysqli.so to the php.ini file on my machine, I saved the file. Is there anything else I need to do? Thanks again. Per Jessen p...@computer.org wrote in message news:gpgu1t$ho...@saturn.local.net... Gary wrote:

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

2009-03-14 Thread Gary
Ok.. I have added [MySQL] ;Gary, this is the code from the forum. extension=mysqli.so to the php.ini file on my machine, I saved the file. Is there anything else I need to do? Thanks again. Per Jessen p...@computer.org wrote in message news:gpgu1t$ho...@saturn.local.net... Gary wrote:

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

2009-03-14 Thread Gary
Thanks again to everyone. I have just checked the servers phpinfo, and turns out they are running PHP Version 4.3.11 while I have verstion 5.2.8, could this change any of the advice? Jan G.B. ro0ot.w...@googlemail.com wrote in message

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

2009-03-14 Thread Shawn McKenzie
Gary wrote: Thanks again to everyone. I have just checked the servers phpinfo, and turns out they are running PHP Version 4.3.11 while I have verstion 5.2.8, could this change any of the advice? Yes, the mysqli extension is only available for PHP5. Use the mysql_x() functions or move to

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

2009-03-14 Thread revDAVE
On 3/14/2009 10:36 AM, Gary gwp...@ptd.net wrote: Can anyone enlighted me as to what I am not doing correctly? Hi Gary, I am hosted using a basic cpanel interface ... There's a button = Remote MySQL which brings up a page: Remote Database Access Hosts And I put in my HOME IP and all works