Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Red Hat 7.0, 7.2,8,9, Mandrake 9.0, 9.2, Knoppix, DSL, Fedora Core 4,Solaris 8
I have Php 4 and MySQL 3.23.53a installed on a Redhat 7.2 box. Both programs work fine individually but when I try to send data from a Php form to a MySQL database I get the following error in the browser:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/test.php on line 10
I also tried creating a database in MySQL from the shell prompt and inserted data into it without any problems but when I tried to access using a PhP script I got the same mysql_connect() error. Can anyone help?
function dbconnect ($dbname="mydb",$user="someone",$server="localhost"
if (!($mylink = mysql_connect($server,$user)))
print "<h3>could not connect to database</h3>\n";
did u call the function like that, or did u call it without arguments?
I had the same exact problem. It turned out that PHP did not have MySql support configured. I had to recompile PHP with --with-mysql[=DIR]
Include MySQL support. DIR is the MySQL base directory. If unspecified, the bundled MySQL library will be used.