note 57823 added to function.mysql-connect

From: Date: Sat, 15 Oct 2005 04:43:49 +0000
Subject: note 57823 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-97049@lists.php.net to get a copy of this message
I new to php, installed php5 and mysql 4 my system running iss 5.1 trying to understand how it work but i could not connect to server using the code listed below <?php $link = mysql_connect('localhost', 'root', ''); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> i always receive error Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\connect.php on line 2 anyone there please help me to figure out what is the problem ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57823 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57823&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57823&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97049) next »