RE: [PHP-DB] please help...
| From: | Wesley Choate | Date: | Tue, 29 Aug 2000 15:33:09 +0000 |
| Subject: | RE: [PHP-DB] please help... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2449@lists.php.net to get a copy of this message | ||
Did you compile PHP with the mysql support..
> -----Original Message-----
> From: Sunil Bhatia [SMTP:sunil_a_b@hotmail.com]
> Sent: Tuesday, August 29, 2000 4:05 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] please help...
>
> 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.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>