Check your php install:test.php :
<? phpinfo(); ?> ) (( |""|-. | :|/' -`--'- On Tue, 12 Feb 2002, Martin Allan Jensen wrote: > Sorry folks, last time i wrote it to fast....! Well here is the hole story.... > > We got an organisation to install a new version of phpmyadmin, mySQL and PHP 4.0.6 >on our Cobalt Raq 4r server (Linux) > > They got it installed and phpmyadmin is working fine....but when i call fro a script >souch as > %%%%%%%%%%%%% > <? > // Connecting, selecting database > $link = mysql_connect("127.0.0.10", "phpcoder_dk", "pdw") > or die("Could not connect"); > print "Connected successfully"; > mysql_select_db("phpcoder_dk") > or die("Could not select database"); > > // Performing SQL query > $query = "SELECT * FROM hits"; > $result = mysql_query($query) > or die("Query failed"); > ?> > %%%%%%%%%%%%% > > The script writes this..... > %%%%%%%%%%%%% > Fatal error: Call to undefined function: mysql_connect() in >/home/sites/site2/web/sql.php on line 3 > %%%%%%%%%%%%% > > You can test it at http://www.phpcoder.dk/sql.php > > I really hope that someone will help me cause i really can't find the problem by >myself.......! > > Kind regards > Martin Allan Jensen > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php