Re: [PHP-DB] Fatal Error - Undefined function mysqli_connect

2011-09-04 Thread Lester Caine

Ben wrote:

My server was upgraded to PHP 5.3.8 and MySQL 5.1.58 today and, since, I am
getting a 500 error on any script requiring a DB connection.

Upgraded from what?
Sounds like the mysqli extension is no longer getting loaded. There will either 
be an error saying why, or it is still commented out in the php.ini.


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



RE: [PHP-DB] Fatal Error - Undefined function mysqli_connect

2011-09-04 Thread Ben
Lester wrote:
Upgraded from what?
 Sounds like the mysqli extension is no longer getting loaded. There will
either be an error saying why, or it is still commented out in the php.ini.

Upgraded from PHP 4.3 and MySQL 4.1.  Was using mysql_connect, but
understand that mysqli is better/supported extension for newer versions, so
am trying to rewrite the code to use mysqli_connect.  For what it's worth,
mysqli_init() also produces Call to undefined function mysqli_init() in my
error logs.

Thanks again,

Ben Miller 



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



Re: [PHP-DB] Fatal Error - Undefined function mysqli_connect

2011-09-04 Thread Lester Caine

Ben wrote:

Upgraded from what?
  Sounds like the mysqli extension is no longer getting loaded. There will

either be an error saying why, or it is still commented out in the php.ini.

Upgraded from PHP 4.3 and MySQL 4.1.  Was using mysql_connect, but
understand that mysqli is better/supported extension for newer versions, so
am trying to rewrite the code to use mysqli_connect.  For what it's worth,
mysqli_init() also produces Call to undefined function mysqli_init() in my
error logs.


That would explain the problem ;)
Need the mysqli extension enabled instead of mysql ...

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



Re: [PHP-DB] Fatal error: Class 'Mail' not found in

2010-05-29 Thread Nilesh Govindarajan
On Sat, May 29, 2010 at 7:23 PM, win.a win@gmail.com wrote:
 Excuse me to trouble ,in my little application there's a mail function
 which i revoked the pear package require 'mail.php'

 when i test the app ,it show me Fatal error: Class 'Mail' not found
 ,i checked the mail.php no Class Mail?
 How can i solve the issue ,or where i can download the Mail.php
 including Class Mail?

 All you best
 
 What we are struggling for ?
 The life or the life ?

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




You have to download the Mail pear package and put it in your
include_path (Even the script's current directory will do), and then
include Mail.php from that package.

-- 
Nilesh Govindarajan
Facebook: nilesh.gr
Twitter: nileshgr
Website: www.itech7.com

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



Re: [PHP-DB] Fatal error: Call to undefined function pq_query()

2010-04-13 Thread Firan Corneliu
Are you sure you're not using q instead of g :)

just to be sure, you can check if a function exists by using

$boolExists = function_exists('any_function_name');
http://www.php.net/manual/en/function.function-exists.php

On Tue, Apr 13, 2010 at 11:20 AM, Gary . php...@garydjones.name wrote:

 What the...

 What is causing this? I can use pg_connect without complaint, why
 does pq_query give this problem? PHP 5.3.1 FWIW.

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




Re: [PHP-DB] Fatal error: Call to undefined function pq_query()

2010-04-13 Thread Gary .
On Tue, Apr 13, 2010 at 10:40 AM, Firan Corneliu wrote:
 Are you sure you're not using q instead of g :)

Err. My first thought was What a strange thing to ask. Then I looked...

Thanks. I'd been looking at that for a good hour or so... *embarrassed*

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



RE: [PHP-DB] Fatal Error: Class 'mysqli' not found in...

2007-02-19 Thread Dwight Altman
So we are talking about MS Windows?

I was shocked to see Linux antivirus offerings, so you had me concerned for
a moment.

I can only laugh at your calamity.

Okay, I can offer something else.  How about providing the list with the
not found in... part?  Perhaps put it where it is looking for it?

Regards,
Dwight
 -Original Message-
 From: Ralph E. Brickley [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 19, 2007 12:58 PM
 To: php-db@lists.php.net
 Subject: [PHP-DB] Fatal Error: Class 'mysqli' not found in...
 
 Hello All,
 
 
 
 I have been using Apache 2, PHP5 and MySQL 4 and 5 for a long time, and
 recently had to wipe my box due to a virus!
 
 
 
 Now that I have everything reinstalled, I can NOT get rid of this annoying
 MySQLi error. I have experienced this before but I can't seem to fix it
 this
 time. I have all of the necessary ini file settings, such as
 
 
 
 #
 
 Extension=php_mysqli.dll
 
 
 
 #
 
 Extension_dir = C:\PHP5\ext\
 
 
 
 
 
 I do not get any errors on start up from Apache, but in trying to access
 mysqli I get this fatal error. I have lib_mysqli.dll all over this
 computer,
 Windows, System32, System, C:\PHP5, C:\PHP5\EXT\, everywhere. I'm stuck
 and
 need help. I uninstalled MySQL 5 and put 4.1 back on and that didn't help
 either.
 
 
 
 Any clues? Thanks!
 
 
 Ralph
 
 McMinnville
 
 
 
 
 
 
 
 

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



Re: [PHP-DB] Fatal Error: Class 'mysqli' not found in...

2007-02-19 Thread John Comerford

Have you tried using phpinfo() to make sure it's seeing your php.ini file ?


Ralph E. Brickley wrote:

Hello All,

 


I have been using Apache 2, PHP5 and MySQL 4 and 5 for a long time, and
recently had to wipe my box due to a virus! 

 


Now that I have everything reinstalled, I can NOT get rid of this annoying
MySQLi error. I have experienced this before but I can't seem to fix it this
time. I have all of the necessary ini file settings, such as 

 


#

Extension=php_mysqli.dll

 


#

Extension_dir = C:\PHP5\ext\

 

 


I do not get any errors on start up from Apache, but in trying to access
mysqli I get this fatal error. I have lib_mysqli.dll all over this computer,
Windows, System32, System, C:\PHP5, C:\PHP5\EXT\, everywhere. I'm stuck and
need help. I uninstalled MySQL 5 and put 4.1 back on and that didn't help
either.

 


Any clues? Thanks!


Ralph

McMinnville

 

 

 

 



  



--

1^st Floor, 184 -186 Glenferrie Road, Malvern VIC 3144

PH:*(03) 9500 1466*
FX :*(03) 9500 1469*
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Web:  www.styleman.com.au http://www.styleman.com.au

The information in this e-mail is confidential and is intended solely 
for the addressee. Any views or opinions presented are solely those of 
the author and do not necessarily represent those of Option Systems Pty 
Ltd. If you are not the intended recipient, please delete this message 
and contact the sender.


RE: [PHP-DB] Fatal Error: Class 'mysqli' not found in...

2007-02-19 Thread Ralph E. Brickley
I discovered my problem by using phpinfo() and realizing that the
include_path and extension_dir did not equal what I had set in php.ini. Then
I got to digging.

I have always kept php.ini in C:\WINDOWS. I copied php.ini from windows to
the PHP installation path, restarted apache, and viola. Problem solved.

Thanks for all the help.

I do laugh at my calamity... thought I must cry too!

-Original Message-
From: John Comerford [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 19, 2007 3:33 PM
To: Ralph E. Brickley
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Fatal Error: Class 'mysqli' not found in...

Have you tried using phpinfo() to make sure it's seeing your php.ini file ?


Ralph E. Brickley wrote:
 Hello All,

  

 I have been using Apache 2, PHP5 and MySQL 4 and 5 for a long time, and
 recently had to wipe my box due to a virus! 

  

 Now that I have everything reinstalled, I can NOT get rid of this annoying
 MySQLi error. I have experienced this before but I can't seem to fix it
this
 time. I have all of the necessary ini file settings, such as 

  

 #

 Extension=php_mysqli.dll

  

 #

 Extension_dir = C:\PHP5\ext\

  

  

 I do not get any errors on start up from Apache, but in trying to access
 mysqli I get this fatal error. I have lib_mysqli.dll all over this
computer,
 Windows, System32, System, C:\PHP5, C:\PHP5\EXT\, everywhere. I'm stuck
and
 need help. I uninstalled MySQL 5 and put 4.1 back on and that didn't help
 either.

  

 Any clues? Thanks!


 Ralph

 McMinnville

  

  

  

  


   


-- 

1^st Floor, 184 -186 Glenferrie Road, Malvern VIC 3144

PH:*(03) 9500 1466*
FX :*(03) 9500 1469*
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Web:  www.styleman.com.au http://www.styleman.com.au

The information in this e-mail is confidential and is intended solely 
for the addressee. Any views or opinions presented are solely those of 
the author and do not necessarily represent those of Option Systems Pty 
Ltd. If you are not the intended recipient, please delete this message 
and contact the sender.

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



RE: [PHP-DB] fatal error

2004-11-29 Thread Gryffyn, Trevor
What version of PHP are you using?   Did you develop it on one system
then move it to 'production' and now it doesn't work?

PHP 5 has SQLite functions built into it, but PHP 4 doesn't (I think I
got that right).  You may need to make sure your extensions are loading
properly and such.

Is it just that one script that's failing or is ALL of your SQLite stuff
failing now?

Check your PHP version and your phpinfo() to make sure your extensions
are loading correctly.  After that, I'm not sure.

-TG

 -Original Message-
 From: Aravalli Sai [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 27, 2004 3:47 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] fatal error
 
 
 i had created an inventory management system in php using 
 sqlite DB..with ADD,DELETE,UPDATE,VIEW,FIND functions...and 
 it was working properly..but suddenly it is giving an error as
 Fatal error: Call to undefined function: sqlite_open() in 
 /home/saravall/.HTML/view.php on line 25
 
  
 can anyone figure out  the error..
  
 thanks in advance..
  
 --regards
  
 
   
 -
 Do you Yahoo!?
  Read only the mail you want - Yahoo! Mail SpamGuard.
 

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



Re: [PHP-DB] fatal error

2004-11-27 Thread Huy Ton That
how do i remove myself off this list?

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



RE: [PHP-DB] Fatal error message

2003-01-16 Thread Rich Gray
Jon

Based on your include path does the script exist in any of these locations
on your server?

= /var/www/html/addrbk/Connections/addrbk.php or
= /php/includes/Connections/addrbk.php
= /usr/share/pear/Connections/addrbk.php

If not then that's your problem, else you need to start looking at
file/directory permissions...

Your include_path setting in php.ini tells php where to look for scripts if
a non absolute path is specified on a include/require statement. In your
case it will first look in the including script's directory, then the
directory /php/includes then the directory /usr/share/pear...

Rich
-Original Message-
From: Jon Miller [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 10:03
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Fatal error message


I get the following when  loading a php file created by Dreamweaver MX using
MySQL database and php.

Fatal error: Failed opening required 'Connections/addrbk.php'
(include_path='.:/php/includes:/usr/share/pear') in
/var/www/html/addrbk/frmAddr.php on line 1

For the include_path I've used include_path = .:/php/includes and
still get the same error.  I'm not too sure what this path is supposed to
be pointing to.  Can someone enlighten me on this?

setup info:
MySQL is on a Linux 7.3 server
PHP is on the same server

Dreamweaver MX is on Windows 2000.
Everything work fine as for as creating the form, just when try to run it I
get the message.  I should mentioned I just copied the file created to the
linux location where the files are supposed to be.

Thanks



Jon L. Miller, MCNE, CNS
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au

I don't know the key to success, but the key to failure
 is trying to please everybody. -Bill Cosby





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




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




Re: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Jeffrey_N_Dyke


does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|





   
   
  Vyas, Bhavin   
   
  Bhavin.Vyas@247ReaTo:   '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
  lMedia.comcc:   
   
 Subject:  [PHP-DB] Fatal error: Call 
to undefined function: mysql_connect() ..   
  10/14/2002 10:57 AM  
   
   
   
   
   




I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

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





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




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Vyas, Bhavin

The only other place it shows up is in the dbx section
DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|





 

  Vyas, Bhavin

  Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

  lMedia.comcc:

 Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..   
  10/14/2002 10:57 AM

 

 





I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

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





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

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




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_conne ct() ......

2002-10-14 Thread Jeffrey_N_Dyke


I think this is how it works.if you're using dbx then you need to
connect using dbx_connect and not mysql_connect
and i don't think that [shared] is a valid argument.

I only connect to mysql and M$Sql  so i have configured to connect to those
specifiacally.

I would reconfigure using -with-mysql=/path/to/mysql

but, i am on Solaris8, so you may want to get other advice from someone
running RH

hth
jd



   
   
Vyas, Bhavin 
   
Bhavin.Vyas@247Real   To: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
Media.com cc: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
   Subject: RE: [PHP-DB] Fatal error: 
Call to undefined function: 
10/14/2002 11:14 AM mysql_conne ct() ..
   
   
   
   
   




The only other place it shows up is in the dbx section
   DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|







   Vyas, Bhavin

   Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

   lMedia.comcc:

 Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..
   10/14/2002 10:57 AM









I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

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





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

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





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




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_conne ct() ......

2002-10-14 Thread Jeffrey_N_Dyke


what are you passing for module(the first argument for dbx_connect)  it
should be DBX_MYSQL, or  mysql, if that fails, recompile without the shared
argument, and i bet that would work



   
   
Vyas, Bhavin 
   
Bhavin.Vyas@247Real   To: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED], Vyas,
Media.com  Bhavin [EMAIL PROTECTED] 
   
   cc: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
10/14/2002 11:43 AMSubject: RE: [PHP-DB] Fatal error: 
Call to undefined function: 
mysql_conne  ct() ..   
   
   
   




Thanks for the info. Now, I am getting the following error:

Warning: dbx: module '1' not loaded or not supported.

If any one has any ideas

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:29 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Fatal error: Call to undefined function:
mysql_conne ct() ..



I think this is how it works.if you're using dbx then you need to
connect using dbx_connect and not mysql_connect
and i don't think that [shared] is a valid argument.

I only connect to mysql and M$Sql  so i have configured to connect to those
specifiacally.

I would reconfigure using -with-mysql=/path/to/mysql

but, i am on Solaris8, so you may want to get other advice from someone
running RH

hth
jd





 Vyas, Bhavin

 Bhavin.Vyas@247Real   To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Media.com cc:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: [PHP-DB]
Fatal error: Call to undefined function:
 10/14/2002 11:14 AM mysql_conne ct() ..









The only other place it shows up is in the dbx section
   DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|







Vyas, Bhavin

Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

lMedia.comcc:

   Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..
10/14/2002 10:57 AM









I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

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





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

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







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




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Vyas, Bhavin

I am using mysq. I tried to re-install using rpm, but didn't work. Will
need to recompile. However, now, I am getting Mysql not loaded. My feeling
is that there must be a simple way to load this module, just don't know how
:-(
If anyone does, please let me know, else I will recompile.

Thanks for all your help!!!

Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:46 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Fatal error: Call to undefined function:
mysql_conne ct() ..



what are you passing for module(the first argument for dbx_connect)  it
should be DBX_MYSQL, or  mysql, if that fails, recompile without the shared
argument, and i bet that would work



 

Vyas, Bhavin

Bhavin.Vyas@247Real   To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED], Vyas,
Media.com  Bhavin
[EMAIL PROTECTED]
   cc:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
10/14/2002 11:43 AMSubject: RE: [PHP-DB]
Fatal error: Call to undefined function: 
mysql_conne  ct() ..

 





Thanks for the info. Now, I am getting the following error:

Warning: dbx: module '1' not loaded or not supported.

If any one has any ideas

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:29 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Fatal error: Call to undefined function:
mysql_conne ct() ..



I think this is how it works.if you're using dbx then you need to
connect using dbx_connect and not mysql_connect
and i don't think that [shared] is a valid argument.

I only connect to mysql and M$Sql  so i have configured to connect to those
specifiacally.

I would reconfigure using -with-mysql=/path/to/mysql

but, i am on Solaris8, so you may want to get other advice from someone
running RH

hth
jd





 Vyas, Bhavin

 Bhavin.Vyas@247Real   To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Media.com cc:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: [PHP-DB]
Fatal error: Call to undefined function:
 10/14/2002 11:14 AM mysql_conne ct() ..









The only other place it shows up is in the dbx section
   DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|







Vyas, Bhavin

Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

lMedia.comcc:

   Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..
10/14/2002 10:57 AM









I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

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





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

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






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




Re: [PHP-DB] Fatal error: Call to undefined function: mysql_conne ct() ......

2002-10-14 Thread Michael Mauch

Bhavin Vyas [EMAIL PROTECTED] wrote:

 I am using mysq. I tried to re-install using rpm, but didn't work. Will
 need to recompile. However, now, I am getting Mysql not loaded. My feeling
 is that there must be a simple way to load this module, just don't know how
 :-(

You have to use

extension=mysql.so

in your php.ini, and make sure that the extension_dir is set to the
right directory (try locate mysql.so to find it). Stop and restart
Apache, then your mysql module should be available.

Regards...
Michael

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




Re: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in .....

2002-07-18 Thread Miles Thompson

Is PostgreSQL started with the -i switch? (I think that's the one; it 
exposes it to tcp/ip connections.)  Check your PGSQL docs to be certain.

Have you run a page with phpinfo? Is PostgreSQL support compiled into your 
installation of PHP? This is a file consisting of
? phpinfo(); ?, named phpinfo.php. Again, I'm doing this from memory but 
I'm pretty certain of the function name.

If you have a yes to those questions, then we can start on the rest. Check 
to see if there is a pg_error function you can call if the connection 
fails. Keep error reporting at a high level so we can see what they are.

Regards - Miles Thompson

At 06:37 PM 7/18/2002 -0700, Vincent wrote:
Hi, I'm a newbie here. I don't know what went wrong.
I've tried searching for solutions and can't find any.
How come pg_connect() isn't defined? Should I include
any header files or something in php?

Here's my code:

?php $conn = pg_connect(dbname=phpdb); if (!$conn) { echo Unable to 
connect to database
; } else print Connected; ?
I've tried installing Apache's rpm and Php's rpm. I'm
running on RedHat Linux 7.3. apache_1.3.23-11.i386.rpm
and php-4.1.2-7.rpm. Then, it still gives me the error
message. So, I tried the gz version using
apache_1.3.26.tar.gz and php-4.2.1.tar.gz. Nothing
works. I've tried looking into the php.ini files,
adding extension to pgsql.so.

Have any of you encountered this problem before?

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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



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




RE: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in ...

2001-10-29 Thread Rick Emery

This means that PostgreSQL support was NOT compiled into PHP.  Therefore,
you cannot use PostgreSQL commands.

-Original Message-
From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Fatal error: Call to undefined function: pg_connect()
in ...


Hello,

I am trying to run my first php script to connect to a PostgreSQL
database on a Linux box with apache web server.

When I try to load the page with the browser i get the following error:

Fatal error: Call to undefined function: pg_connect() in
/dirname/tryit.php on line 9

I was able to create tables on the database via the webadmin tool, so I
know that postgres is running properly.

Here is my code.


html
head
titleTESTING PHP4 with PG/title
/head
body bgcolor=#FF topmargin=10 leftmargin=10
p align=centerstrongTesting connection to Postgres using php4 from
an apache webserver on Linux Mandrake 8.0/strong/p
?php
   $conn = pg_connect(host=localhost dbname=databasename);
   if (! $conn) { ?
  p Can not open connection to Database, contact the site
administrator /p ?php
  }
   else
  {
  $SQL = SELECT * FROM TABLENAME;
  $rs = pg_query($SQL, $conn);
  if (! $rs) {?
 p Can not execute SQL statement, contact the site
administrator /p ?php
  }
  else
  {
 do {
 while ($row = pg_fetch_row($rs)) { ?
p ?php echo $row; ? /p ?php
}
 } while (pg_next_result($rs));
 pg_freeresult($rs);
 pg_close ($conn);
   }
   }
?
/body
/html

Thanks in advance


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in ...

2001-10-29 Thread Rodolfo Napoles

Is there a way to configure php (through the conf file?) to support the pg
commands? Is there a manual (link) where I can find how to compile postgreSQL
support into PHP? does it mean to compile PHP ?

Thanks

Rick Emery wrote:

 This means that PostgreSQL support was NOT compiled into PHP.  Therefore,
 you cannot use PostgreSQL commands.

 -Original Message-
 From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 29, 2001 2:17 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Fatal error: Call to undefined function: pg_connect()
 in ...

 Hello,

 I am trying to run my first php script to connect to a PostgreSQL
 database on a Linux box with apache web server.

 When I try to load the page with the browser i get the following error:

 Fatal error: Call to undefined function: pg_connect() in
 /dirname/tryit.php on line 9

 I was able to create tables on the database via the webadmin tool, so I
 know that postgres is running properly.

 Here is my code.

 html
 head
 titleTESTING PHP4 with PG/title
 /head
 body bgcolor=#FF topmargin=10 leftmargin=10
 p align=centerstrongTesting connection to Postgres using php4 from
 an apache webserver on Linux Mandrake 8.0/strong/p
 ?php
$conn = pg_connect(host=localhost dbname=databasename);
if (! $conn) { ?
   p Can not open connection to Database, contact the site
 administrator /p ?php
   }
else
   {
   $SQL = SELECT * FROM TABLENAME;
   $rs = pg_query($SQL, $conn);
   if (! $rs) {?
  p Can not execute SQL statement, contact the site
 administrator /p ?php
   }
   else
   {
  do {
  while ($row = pg_fetch_row($rs)) { ?
 p ?php echo $row; ? /p ?php
 }
  } while (pg_next_result($rs));
  pg_freeresult($rs);
  pg_close ($conn);
}
}
 ?
 /body
 /html

 Thanks in advance

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in ...

2001-10-29 Thread Fotwun

Compile a dynamic module for use with the dl() function or the php.ini.

./configure --with-pg=shared
make

cp the module in the src/module (pgsql.so) into the location defined for
modules in your php.ini.

either add line to the ini or use the dl('pgsql.so') in your script to call
it.

if you are using a windows box i'm not sure what you do, besides first
switching to an open source OS =). they may already have binaries for
windows modules, though in my experience on unix boxes is that it compares
the the version of php you are running against the version it was compiled
with. if they are different it will error. so watch for that if you find a
compiled module to use. if you do not have access to modify the ini or place
files in the appropriate library directory you will have to request your
admin to do it. if they do not you will need to find another host or use
your own server.

 -Original Message-
 From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 29, 2001 1:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
 pg_connect() in ...


 Is there a way to configure php (through the conf file?) to support the pg
 commands? Is there a manual (link) where I can find how to
 compile postgreSQL
 support into PHP? does it mean to compile PHP ?

 Thanks

 Rick Emery wrote:

  This means that PostgreSQL support was NOT compiled into PHP.
 Therefore,
  you cannot use PostgreSQL commands.
 
  -Original Message-
  From: Rodolfo Napoles [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 29, 2001 2:17 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP-DB] Fatal error: Call to undefined function: pg_connect()
  in ...
 
  Hello,
 
  I am trying to run my first php script to connect to a PostgreSQL
  database on a Linux box with apache web server.
 
  When I try to load the page with the browser i get the following error:
 
  Fatal error: Call to undefined function: pg_connect() in
  /dirname/tryit.php on line 9
 
  I was able to create tables on the database via the webadmin tool, so I
  know that postgres is running properly.
 
  Here is my code.
 
  html
  head
  titleTESTING PHP4 with PG/title
  /head
  body bgcolor=#FF topmargin=10 leftmargin=10
  p align=centerstrongTesting connection to Postgres using php4 from
  an apache webserver on Linux Mandrake 8.0/strong/p
  ?php
 $conn = pg_connect(host=localhost dbname=databasename);
 if (! $conn) { ?
p Can not open connection to Database, contact the site
  administrator /p ?php
}
 else
{
$SQL = SELECT * FROM TABLENAME;
$rs = pg_query($SQL, $conn);
if (! $rs) {?
   p Can not execute SQL statement, contact the site
  administrator /p ?php
}
else
{
   do {
   while ($row = pg_fetch_row($rs)) { ?
  p ?php echo $row; ? /p ?php
  }
   } while (pg_next_result($rs));
   pg_freeresult($rs);
   pg_close ($conn);
 }
 }
  ?
  /body
  /html
 
  Thanks in advance
 
  --
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal Error

2001-09-22 Thread Andreas D. Landmark

At 23.09.2001 02:41, you wrote:
Hello,

I was wondering if this means that my ISP doesnt support mysl commands in
php. They use php3.0.18 and apache server. I get the following message.

Pretty much. Your ISP has probably compiled PHP w/o mysql support, since 
they're
running such an old version in the first place, why not put in a nice 
request and try to
get them to recompile php (and perhaps move to version 4).


-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error

2001-08-24 Thread * RzE:

--- Original message ---
From: Russ Michell [EMAIL PROTECTED]
Date: Fri, Aug 24, 2001 at 12:47:42PM +0100
Message-ID: SIMEON.10108241242.N@k1c. anglia.ac.uk
Subject: [PHP-DB] Fatal error


 Hi there folks - this isn't *entirley* a DB question so I'm putting on my flack 
Jacket right now:
 
 I keep getting this error and have never seen it before:
 Fatal error: Cannot redeclare parse_dir() in intranet/bin/includes/functions.php on 
line 47
 
 It gives me this error for every function I have (written). I know for a fact that 
this function 
 ('parse_dir') has only been declared once, so why is php lying to me!!?
 
 Feel free *not to answer* instead of wasting your own time giving me jip for an off 
topic query.
 Cheers
 
 Russ
 
 #---#
   
   Believe nothing - consider everything 
   
   Russ Michell
   Anglia Polytechnic University Webteam
   
   e: [EMAIL PROTECTED]
   w: www.apu.ac.uk/webteam
   t: +44 (0)1223 363271 x 2331
 
   www.theruss.com
   
 #---#

--- End of original message ---

Reply

Do you include these functions? If you do, you might want to check
if you include it more than once. You can then best use
include_once() instead of include(). That makes sure that the file
will only be included once and so your function will not be
redeclared.

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: RE: [PHP-DB] Fatal error

2001-08-24 Thread Russ Michell

Try to include your files with the command include_once() ... and not
include() ...

Well Br me! Cheers..
That did the job...

I thank you sir!
Cheers

Russ

On Fri, 24 Aug 2001 13:04:15 +0200 Walter, Marcel [EMAIL PROTECTED] wrote:

 Try to include your files with the command include_once() ... and not
 include() ...
 Maybe this solves your problem... because you ARE trying to declare
 a function which is already declared ...
 
  -Original Message-
  From:   Russ Michell [SMTP:[EMAIL PROTECTED]]
  Sent:   Friday, August 24, 2001 13:48
  To: [EMAIL PROTECTED]
  Subject:[PHP-DB] Fatal error
  
  Hi there folks - this isn't *entirley* a DB question so I'm putting on my
  flack Jacket right now:
  
  I keep getting this error and have never seen it before:
  Fatal error: Cannot redeclare parse_dir() in
  intranet/bin/includes/functions.php on line 47
  
  It gives me this error for every function I have (written). I know for a
  fact that this function 
  ('parse_dir') has only been declared once, so why is php lying to me!!?
  
  Feel free *not to answer* instead of wasting your own time giving me jip
  for an off topic query.
  Cheers
  
  Russ
  
  #---#
  
Believe nothing - consider everything   

Russ Michell
Anglia Polytechnic University Webteam

e: [EMAIL PROTECTED]
w: www.apu.ac.uk/webteam
t: +44 (0)1223 363271 x 2331
  
www.theruss.com
  
  #---#
  
  
  -- 
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

#---#

  Believe nothing - consider everything   
  
  Russ Michell
  Anglia Polytechnic University Webteam
  
  e: [EMAIL PROTECTED]
  w: www.apu.ac.uk/webteam
  t: +44 (0)1223 363271 x 2331

  www.theruss.com

#---#


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Fatal error: undefined function mysql_connect()

2001-04-30 Thread Lester June Cabrera


Shouldn't it be --with-mysql=... ?


At 09:17 AM 4/30/01 +0200, Newsletter wrote:
Hi there,

we have the same problem on our Debian.

In the top of the output of phpinfo() says -with-mysql=share, but
there is no section with mysql and the settings further down.

Maybe someone knows the answer!

Greetings
Andi

|-Ursprüngliche Nachricht-
|Von: winescout [mailto:[EMAIL PROTECTED]]
|Gesendet: Sonntag, 29. April 2001 20:44
|An: [EMAIL PROTECTED]
|Betreff: Re: [PHP-DB] Fatal error: undefined function mysql_connect()
|
|
|I am having the same problem.  I followed the advice of the
|message below(?
|phpinfo()?), and can only find any mention of mySQL in my
|Configure area.
|It shows that I configured it with -with-mysql=share.
|What is the next
|step to solving this?
|
|Here is some more information that may be usefull.
|RedHat 7.0
|Apache 1.3.x
|PHP 4.04 compiled with Apache, not as a dynamic module
|
|time and suggestions much appreciated
|Matt


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-
Lester June Cabrera
Chief Web Programmer
I-Quest Corporation

Tel: (632) 867 8150 local 301 or 302
Fax: (63 2) 867 8077
E-mail: [EMAIL PROTECTED]

Visit the most comprehensive on-line business travel resource at 
http://www.worldroom.com

Successful events start here. Visit http://www.worldroomevents.com .
The one-stop online exchange for event planners and suppliers to the MICE 
industry.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error: undefined function mysql_connect()

2001-04-29 Thread winescout

I am having the same problem.  I followed the advice of the message below(?
phpinfo()?), and can only find any mention of mySQL in my Configure area.
It shows that I configured it with -with-mysql=share.  What is the next
step to solving this?

Here is some more information that may be usefull.
RedHat 7.0
Apache 1.3.x
PHP 4.04 compiled with Apache, not as a dynamic module

time and suggestions much appreciated
Matt

Victor Foitzik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello franky,
 on 13.04.2001 you wrote:

  I'm trying to connect to mySQL DB by Web page
   and

  when I use mysql_connect()
  this append:
  Fatal error: Call to unsupported or undefined function mysql_connect()

  thanks!

 are you really sure your php has mysql support compiled in (yes, it is
 possible to compile it without ;-)) ? check ? phpinfo(); ? for mysql
 info, if you don't find anything, fetch the latest version and build
 a new php module with mysql support.

 HTH
 Vic



 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error: Call to unsupported or undefined function mysql_connect()

2001-04-12 Thread Brian S. Dunworth

Such patience!  You waited nearly 7 whole minutes before reposting your 
message!

I don't run MySQL, so I'm not sure... but it looks like you probably don't 
have MySQL support in your version of PHP. Try:

?php
phpinfo();
?

...and see if it says you do.


At 12:44 PM 4/13/01 -0400, franky wrote:
I'm trying to connect to mySQL DB by Web page
  and

when I use mysql_connect()
this append:
Fatal error: Call to unsupported or undefined function mysql_connect()

thanks!

Franky
[EMAIL PROTECTED]




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

  -
Brian S. Dunworth
Sr. Software Development Engineer
Oracle Database Administrator
The Printing House, Ltd.

(850) 875-1500  x225
[EMAIL PROTECTED]
  -


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error: Call to unsupported or undefined function mysql_connect()

2001-04-12 Thread B. van Ouwerkerk


Such patience!  You waited nearly 7 whole minutes before reposting your 
message!

I don't run MySQL, so I'm not sure... but it looks like you probably don't 
have MySQL support in your version of PHP. Try:

?php
phpinfo();
?

Also, include some more code.. Or even better, check out some of the fine 
tutorials at www.devshed.com www.phpbuilder.com www.phpnewbie.com

If you're still not successful in connecting we'll be glad to check your code.

Bye,


B.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect()

2001-04-05 Thread Jason Vance

"Call to undefined function" means it doesn't know the name of the function
you are calling.

Hi there, i've had this error as well, using Redhat Linux 7.0.  For me, i'm
using the RPM's to install apache+PHP+MySQL, however, the php-mysql add-on
module is unable to recognize the dependant module mysql.  However i have
already installed and got a mysql database working!

The function mysql_connect() gives me the error "Call to undefined
function", SO I FORCED THE PHP-MYSQL INSTALLATION (rpm --nodeps mysql -i -vv
php-mysql-4.0.4pl1-3.i386.rpm), and i can now use this function to connect
to the database, however, i'm now getting "Warning: Supplied argument is not
a valid MySQL result resource in /var/www/html/test.php on line 9" which is
the mysql_fetch_array() command.

When i list RPM packages on my system versus what the php add-on module is
asking for is (when it fails during installation) the only difference is
case sensitivity?!  Could this be the problem?

Has anyone run into this installation problem of apache+php+mysql RPM on a
redhat linux box?   I guess i'm going to have to compile the servers myself.

Thanks,

Jay

-Original Message-
From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent: April 4, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Fatal error: Call to unsupported or undefined
functi on mysql_connect()


On 4 Apr 2001 06:54:45 -0700 AD in php.db, Brunner, Daniel said:

Hello...

Either the Username or Password or Database does not exist...

NO!.

"Call to undefined function" means it doesn't know the name of the function
you are calling.

if the function name is correct you either need to load a mySQL library for
PHP using the dl statement or you need to compile PHP with mySQL support
enabled.

Check with your server administrator.


Do this

$db =3D mysql_connect(server, $user, $password)=20
   or die ("Sorry something is wrong");
$select =3D mysql_select_db("intranet", $db);
   or die ("Sorry something is wrong");

That way you can see if it connects and or if the Database does
exist.


You can also delete $select as well so it would read.

mysql_select_db("intranet", $db);
   or die ("Sorry something is wrong");

That what I use

That really might be the problem..


Learn how to put in debug stuff. It's easier to see your
mistakesI know I had a bunch...



Dan=20




 --
 From:Patrick Sch=E4fer
 Sent:Wednesday, April 4, 2001 7:41 AM
 To:  PHP
 Subject: [PHP-DB] Fatal error: Call to unsupported or undefined
 function mysql_connect()=20
=20
 Can anybody help me with this problem 
=20
 Fatal error: Call to unsupported or undefined function =
mysql_connect()
 in
 dbopen.php on line 7
=20
 $server =3D "localhost";
 $user   =3D "dbuser";
 $password =3D "pass";
 $db =3D mysql_connect($server, $user, $password); -- This is line 7 =
of
 my
 script
 $select =3D mysql_select_db("intranet", $db);
=20
 Thanks,
 Patrick
=20
=20
 --=20
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
=20
=20



--
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Rejoice in the Lord always. I will say it again: Rejoice!
-- Philippians 4:4
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010404
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Fatal error: Call to unsupported or undefined function mysql_connect()

2001-04-04 Thread Brunner, Daniel

Hello...

Either the Username or Password or Database does not exist...

Do this

$db = mysql_connect(server, $user, $password) 
or die ("Sorry something is wrong");
$select = mysql_select_db("intranet", $db);
or die ("Sorry something is wrong");

That way you can see if it connects and or if the Database does
exist.


You can also delete $select as well so it would read.

mysql_select_db("intranet", $db);
or die ("Sorry something is wrong");

That what I use

That really might be the problem..


Learn how to put in debug stuff. It's easier to see your
mistakesI know I had a bunch...



Dan 




 --
 From: Patrick Schfer
 Sent: Wednesday, April 4, 2001 7:41 AM
 To:   PHP
 Subject:  [PHP-DB] Fatal error: Call to unsupported or undefined
 function mysql_connect() 
 
 Can anybody help me with this problem 
 
 Fatal error: Call to unsupported or undefined function mysql_connect()
 in
 dbopen.php on line 7
 
 $server = "localhost";
 $user   = "dbuser";
 $password = "pass";
 $db = mysql_connect($server, $user, $password); -- This is line 7 of
 my
 script
 $select = mysql_select_db("intranet", $db);
 
 Thanks,
 Patrick
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Fatal error: Call to unsupported or undefined functi on mysql_connect()

2001-04-04 Thread Patrick Dunford

On 4 Apr 2001 06:54:45 -0700 AD in php.db, Brunner, Daniel said: 

Hello...

Either the Username or Password or Database does not exist...

NO!.

"Call to undefined function" means it doesn't know the name of the function 
you are calling.

if the function name is correct you either need to load a mySQL library for 
PHP using the dl statement or you need to compile PHP with mySQL support 
enabled.

Check with your server administrator.


Do this

$db =3D mysql_connect(server, $user, $password)=20
   or die ("Sorry something is wrong");
$select =3D mysql_select_db("intranet", $db);
   or die ("Sorry something is wrong");

That way you can see if it connects and or if the Database does
exist.


You can also delete $select as well so it would read.

mysql_select_db("intranet", $db);
   or die ("Sorry something is wrong");

That what I use

That really might be the problem..


Learn how to put in debug stuff. It's easier to see your
mistakesI know I had a bunch...



Dan=20




 --
 From:Patrick Sch=E4fer
 Sent:Wednesday, April 4, 2001 7:41 AM
 To:  PHP
 Subject: [PHP-DB] Fatal error: Call to unsupported or undefined
 function mysql_connect()=20
=20
 Can anybody help me with this problem 
=20
 Fatal error: Call to unsupported or undefined function =
mysql_connect()
 in
 dbopen.php on line 7
=20
 $server =3D "localhost";
 $user   =3D "dbuser";
 $password =3D "pass";
 $db =3D mysql_connect($server, $user, $password); -- This is line 7 =
of
 my
 script
 $select =3D mysql_select_db("intranet", $db);
=20
 Thanks,
 Patrick
=20
=20
 --=20
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
=20
=20



-- 
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Rejoice in the Lord always. I will say it again: Rejoice!
-- Philippians 4:4
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010404
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Fatal error: Call to undefined function: () in add2.php on line 11

2001-02-26 Thread Joe Brown

back to the drawing board...

Re-compile php --with-mysql

""jim and lois flaherty"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   help , I have this problem

I have redhat 7.0
mysql 3.23
and php-mysql rpm installed

  my code

  html
 head
titleFlaherty Family Page/title
 /head
 ?

 //  connect to server

 $mysql_link = mysql_connect("localhost", "user","password");

 $mysql_select_db("resume");

 $query = "insert into employer(name,add1,add2,city,state)";
 $query = $query."values('$name','$add1','$add2','$city','$state')";


 $mysql_result = mysql_query($query, $mysql_link);


 my line 11 is mysql_connect


 please let me know what I am doing wrong

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]