new form of connection with mysql_init() failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"
(:

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux