note 48139 rejected from function.mysql-connect by betz
| From: | betz@php.net | Date: | Mon, 13 Dec 2004 18:36:29 +0000 |
| Subject: | note 48139 rejected from function.mysql-connect by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81759@lists.php.net to get a copy of this message | ||
Note Submitter: setchana at yahoo dot fr
----
I use PHP5 and MySql 4.1.7
when I try to connect to a MySql DB using this code:
<?php
$connessione = mysql_connect("localhost", "Root", "pwd");
if(!$connessione){
// myDB1 è false o ha un valore diverso da zero.
// in php tutto è vero trane il valore 0 e false.
die("Si sono verificati dei problemi durante la connessione al database");
}
if(!mysql_select_db("TrioMotors", $connessione)) {
die("Il database indicato non è presente nel server");
}
$listaLocation = mysql_query("select * from locations", $connessione);
?>
I have this message error: Fatal error: Call to undefined function mysql_connect() in
c:\Inetpub\wwwroot\MySampleApp\Connection\connection.php on line 12
Some one can help me.
Thanks