note 57397 rejected from tutorial by betz
| From: | betz@php.net | Date: | Mon, 03 Oct 2005 08:34:44 +0000 |
| Subject: | note 57397 rejected from tutorial by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96229@lists.php.net to get a copy of this message | ||
Note Submitter: yana8779 at gmail dot com
----
hi,
i have one question to ask about my connection to mysql. i am using php 5. When i am trying to
connect with the database this error occured
" Fatal error: Call to undefined function mysql_pconnect() in D:\www\php_test.php on line 2
"
This is my full coding to connect to database
"
<?php
$link = mysql_pconnect('localhost', 'root', 'imagnia');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
"
If there someone can help me, please.... i am already stuck with this problem now.
Thank you.