On Mon, 2002-11-04 at 21:51, Ken Arck wrote:
> Hi folks. I'm a real newbie to mysql (believe it or not!)
>
> While just starting to get my feet wet in it, I've come across a huge
> stumbling block already. I am familiar with php however.
>
> A php script I'm playing with has this line:
>
> $db = mysql_connect("localhost", "root");
>
> Here's the html output
>
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/test.php on line 15
>
> I even tried the updated command line with the same failed result
>
> $db = mysql_real_connect("localhost", "root");
>
> BTW, doing a phpinfo() shows that mysql is compiled into php (I'm using PHP
> Version 4.1.2 )
>
> Any help would be appreciated.
>
> Ken
What exactly do you mean by compiled in ? what does your phpinfo say.
You should have a section on mysql not just the line supported databases
mysql,pgsql,etc.
Here's what mine says
mysql
MySQL Support
enabled
Active Persistent Links
0
Active Links
0
Client API version
4.0.3-beta
MYSQL_MODULE_TYPE
external
MYSQL_SOCKET
/tmp/mysql.sock
MYSQL_INCLUDE
-I/usr/local/mysql/include
MYSQL_LIBS
-L/usr/local/mysql/lib -lmysqlclient
Directive
Local Value
Master Value
mysql.allow_persistent
On
On
mysql.default_host
no value
no value
mysql.default_password
no value
no value
mysql.default_port
no value
no value
mysql.default_socket
no value
no value
mysql.default_user
no value
no value
mysql.max_links
Unlimited
Unlimited
mysql.max_persistent
Unlimited
Unlimited
Hope thois helps
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php