In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Hello,
>    Trying to use this newer form of connection with mysql_init() and 
> mysql_real_connect instead of mysql_connect(). When I try to recode and 
> use this, I get the following: call to undefined function: 
> mysql_init(). What am I doing wrong? mysql_connect() works just fine 
> though. Thanks in advance. :)
> 
> mysql version is 4.0.12 for apple-darwin6.4
> php is 4.3.1
> 
> sample code:
> if (mysql_init($conn) == '') $errno = 1;
> if (mysql_real_connect($mysql, "localhost", "gale", "", "ornl", 0, "", 
> 0) == '') $errno = 1;
> 
> :)
>    Gale L. Allen Jr
>    Macintosh Support Specialist
>    Phone: 919/412-5039
>    Homepage: http://homepage.mac.com/ateam3/Menu5.html
>    Email me - mailto:[EMAIL PROTECTED]
> 
>    "Remember, Love wins over all"
> (:

A quick glance at the php website told me about mysqli_init which is part 
of the 'Improved MySQL Extension' section which is relevant to mysql 4.1 
and above. More info at http://au2.php.net/manual/en/ref.mysqli.php or 
your favourite mirror.

-- 
Quod subigo farinam

$email =~ s/oz$/au/o;


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

Reply via email to