note 48139 added to function.mysql-connect

From: Date: Mon, 13 Dec 2004 17:14:21 +0000
Subject: note 48139 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-81754@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48139 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48139&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48139&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81754) next »