--with-mysql, yet mysql_errno() is "undefined"?
| From: | CC Zona | Date: | Thu, 25 Jan 2001 00:52:14 +0000 |
| Subject: | --with-mysql, yet mysql_errno() is "undefined"? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36538@lists.php.net to get a copy of this message | ||
I use mysql_* functions all the time, PHP was definitely compiled
--with-mysql, yet for some reason I'm getting "Fatal error: Call to
undefined function: mysql_errorno()" for this one mysql function. Ex.:
mysql_query($query,$connect); //echo of $query is successful at
commandline, and $connect works for other queries on same page
if(mysql_errorno($connect)==1062) //returns "fatal error"
{
$query_status="SKIPPED";
break;
}
Is this normal? Does PHP need to be compiled with some extra setting to
support this function? The manual says this is supported in PHP3 & PHP 4
function, so I wasn't expecting to have a problem using it with PHP
4.0.3pl1. (MySQL is v.3.23.28-gamma; server is Apache 1.3.12)
PHP configured with: './configure' '--with-gd'
'--enable-track-vars'
'--with-apxs=/usr/sbin/apxs' '--enable-sysvsem' '--enable-sysvshm'
'--with-zlib' '--prefix=/usr'
'--with-config-file-path=/etc/httpd/conf'
'--enable-memory-limit' '--with-pgsql=/usr' '--with-db2=/usr'
'--with-gdbm=/usr' '--with-ndbm=/usr' '--with-dbase'
'--enable-trans-sid'
'--with-xml=/usr' '--enable-debugger' '--enable-ftp'
'--with-ttf'
'--with-jpeg-dir=/usr' '--enable-bcmath' '--enable-trans-sid'
'--with-mysql=/usr' '--with-xpm-dir=/usr/X11R6' '--with-png-dir=/usr'
'--with-imap' '--with-dom' '--with-imap-ssl'
'--with-mhash=/usr'
'--with-mcrypt=/usr'
This one really has me stumped.
--
CC