Have you installed the php-mysql package? It should be on one of the RH8 CDs. You can run "php -m" to show the list of PHP modules you have on your system, and mysql should be on that list. --Ade. On Sat, 2003-01-18 at 11:13, Ryan McDougall wrote: > 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