In article <486EE288-B09F-11D7-A8C7-0003934CA606@mac.com>, ateam3@mac.com 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:ateam3@mac.com > > "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