On Tuesday 21 May 2002 10:38, Sameer Maggon wrote: > Hi, > I have my Database in MYSQL and wanna use PHP on Apache > At the starting of the page I have given > > <?php > $query = "SELECT * FROM appl"; > > // Establish a connection to the MySQL DBMS > $connection = mysql_connect("linuxsrv", "sameer", "sameer"); > // Use the rcmms database > mysql_select_db("rcmms", $connection); > > // Run a query through the connection > $result = mysql_query($query, $connection); > ?> > > I says that mysql_connect > > Fatal error: Call to undefined function: mysql_connect() > in /var/www/html/rcmms/appl.php on line 5
Hello, 1. make shure the PHP module is compiled into Apache, or runs as CGI. 2. If you have more questions: Please check following sites first (for documntation): www.apache.org, www.php.net, www.mysql.com Robert Vetter --------------------------------------------------------------------- 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