please help...

From: Date: Tue, 29 Aug 2000 19:05:28 +0000
Subject: please help...
Groups: php.db 
Request: Send a blank email to php-db+get-2446@lists.php.net to get a copy of this message
ERROR: ------ Fatal error: Call to unsupported or undefined function mysql_connect() in /www/htdocs/r-unlimited3/php/firstdb.php on line 6 ------------------- C O D E ------------------------- <html> <body bgcolor=lightblue style="font-family:arial"> <?php
       $link = mysql_connect("localhost","user","password") or exit("logon error...");
echo $link; mysql_select_db("databasename",$link) or exit("<h1>No Database</h1>"); $result = mysql_query("SELECT * FROM testtable") or exit("<H1>Query failed</h1>"); $row = mysql_fetch_object($result); echo $row->name; mysql_free_result($result); ?> </body> </html>
-------------- E N D    O F   C O D E -------------------
please help me with this code, i have tried this code on my local system but it does not work at the server. this is link http://www-r-unlimited.com/php/firstdb.php your prompt reply will be very helpful... regards sunil bhatia _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.db (#2446) next »