Hi, Probably you forgot to install php-mysql package, as i remember right it must be in the third cd of Psyche. hakan terzioglu ----- Original Message ----- From: "Ryan McDougall" <mcdougrs@yahoo.com> To: "mysql" <mysql@lists.mysql.com> Cc: "RedHat 8.0 Psyche" <Psyche-list@redhat.com> Sent: Saturday, January 18, 2003 6:13 PM Subject: MySQL & PHP | hello all, | | I'm posting on 2 lists because I'm not sure were the problem is, so I'm hoping | that some one can help me out. | | I'm running a stock RH8 machine running amongst other things MySQL 3.23.52-3, | Apache 2.0, PHP 4.2.2-8.0.5 When I try a simple php script that is this | (sensitive information changed to protect me): | | <html> | <head><title>My PHP test file</title></head> | <body> | <?php | $link = mysql_connect ("localhost", "user", "password") | or die ("Could not connect"); | print ("Connected successfully"); | $query = "SELECT * FROM who"; | $result = mysql_db_query ("mcdougrsMedia", $query) | or die ("Query failed"); | ?> | </body> | </html> | | The page produces the following output: | | Fatal error: Call to undefined function: mysql_connect() in | /home/username/public_html/testing.php on line 5 | | Can you guys see what is wrong... or if there is other information that is | needed that isn't there please let me know and I will post whatever information | is needed to fix it. | | TIA, | Ryan | | | __________________________________________________ | Do you Yahoo!? | Yahoo! Mail Plus - Powerful. Affordable. Sign up now. | http://mailplus.yahoo.com | | | | -- | Psyche-list mailing list | Psyche-list@redhat.com | https://listman.redhat.com/mailman/listinfo/psyche-list | -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list