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

2009-12-29 Thread chris_brech
After trying everything everyone said in here, I finally had a clear enough head to read through my logs and both my Apache httpd.conf and my PHP6 php.ini files. I realized that in my Apache error log, it was listing the fact that PHP could not load the modules for mysqli and xmlrpc (or somethi

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

2009-03-14 Thread revDAVE
On 3/14/2009 10:36 AM, "Gary" 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 fine now ...

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 mov

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."" wrote in message news:c9a09d00903141132i19597e73g2271955d1ac14...@mail.gmail.com... Gary, you

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" wrote in message news:gpgu1t$ho...@saturn.local.net... Gary wrote: > I had the code

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" wrote in message news:gpgu1t$ho...@saturn.local.net... Gary wrote: > I had the code

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 > MyS

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

2009-03-14 Thread Jan G.B.
2009/3/14 Jan G.B. : > 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, not in the query. -- PH

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: 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 mysqli_connect('$v

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 server

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
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" wrote in message news:gpgr6o$hc...@saturn.local.net... Gary wrote: > Thanks for your

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 "ex

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" wrote in message news:gpgq8i$h5...@saturn.local.net... Gary wrote: > I am recieving a fatal error trying to connect to my

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 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 the mysql_connec

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. >

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

2009-03-14 Thread Gary
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 have also generic