I just built a new Linux 8.0 system and loaded the Apache 2.0 Server, PHP and MySQL Server with the install. I cannot seem to run any PHP MySQL Functions. I get this error:
Fatal error: Call to undefined function: mysql_connect()
Any ideas?
Joey
Dec 12 2002, 02:05 PM
sounds like mysql isnt running.
fmagoufis
Dec 12 2002, 02:25 PM
nope, i can run mysql and create edit delete modify mysql databases. Just cant get at them via php pages.
chrisw
Dec 12 2002, 05:51 PM
check to see if mysql is compiled into php
create this php page and view it in your browser and somewhere on the page it should tell you if mysql is enabled
place the following in a php page:
<?php phpinfo(); ?>
fmagoufis
Dec 13 2002, 10:12 AM
figured it out. downloaded the php-mysql rpm and installed it. All is working now.
Wicked187
Dec 17 2002, 02:56 PM
yes, whenever you get a call to an invalid function, that means that the function does not exist, which means either a) the package that the function in included with is not installed/compiled into php, or you didnt create the function yourself.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.