mysql_connect
| From: | Colberghus.dk Support | Date: | Mon, 11 Feb 2002 18:00:27 +0000 |
| Subject: | mysql_connect | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16812@lists.php.net to get a copy of this message | ||
Hi everyone i really need help to my server....
I have an Cobalt(linux) raq 4 with php 4.0.6 and mySQL but when i call mysql it says "Call to
undefined function: mysql_connect() in /home/sites/site2/web/sql.php on line 3"
Can anyone help me PLEASE??
The script is
###########
<?
// Connecting, selecting database
$link = mysql_connect("localhost", "phpcoder_dk", "password")
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");
?>
###########
You can se it at http://www.phpcoder.dk/sql.php
THANKS....!!
-Martin Allan Jensen