Re: mysql_php4
Am Samstag, den 11.12.2004, 15:57 +0100 schrieb Thomas Bartholomäus:
> Hallo,
>
> will über ein php-script eine datenbank anlegen:
>
>
> <html>
> <body>
> <h3>Datenbank erstellen</h3>
> <?php
> $db=mysql_connect("localhost","root","");
> $anfrage="CREATE DATABASE db_1";
> mysql_query($anfrage);
> mysql_close($db);
> ?>
> </body>
> </html>
>
> beim ausführen kommt fehlermeldung:
>
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/apache2-default/taberstellen.php on line 6
>
> Ich habe sarge laufen, php4, mysql und apache 2.
>
> Wenn ich auf eine bestehende datenbank zugreifen möchte kommt die
> gleiche meldung.
> Woran liegt das...
>
>
> thomas...
Hallo,
schau doch mal ob in /etc/php4/apache2/php.ini die zeile
extension=mysql.so
evtl. noch auskommentiert ist.
Andre
Reply to:
- References:
- mysql_php4
- From: Thomas Bartholomäus <dml@didymus.de>