The function is mysql_errno() not mysql_errorno()

-Rasmus

On Wed, 24 Jan 2001, CC Zona wrote:

> 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
>
> --
> PHP General 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 General 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]

Reply via email to