new form of connection with mysql_init() failing
| From: | Allens | Date: | Mon, 07 Jul 2003 17:20:19 +0000 |
| Subject: | new form of connection with mysql_init() failing | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29129@lists.php.net to get a copy of this message | ||
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"
(: