Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP und mySQL

Empfohlene Antworten

Tach allerseits!

Wollten mit PHP auf unserem Linux-Server unsere Datenbank ansprechen mit

$db = mysql_connect("www","root");

usw., usw., bringt uns beim Ausführen die Fehlermeldung:

Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/Form.php3 on line 9

Wer kann mir einige Tips oder Hilfe geben wie ich die Datenbank ansprechen kann, oder wo mein Fehler liegt.

Danke für eure Tips

Ciao

Timo

Zunächst würde ich mal wie phpinfo() prüfen, ob MySQL überhaupt unterstützt wird...

Ansonsten stimmt die Syntax (wenn das password leer ist - keine gute idee wink.gif)

$db = mysql_connect($host,$user,$password);

Hi,

du hast die Host-Angabe vergessen. Das muß so heißen: $db=mysql_connect("localhost","Name","Passwort");

localhost mußt du angeben, wenn die Datenbank auf dem gleichen Rechner läuft. Ansonsten nimmst du die IP-Adresse des Datenbankservers statt localhost.

Gruß

Wolle

Hi,

auf http://www.php.net oder http://www.php-center.de finden sich viele weitere sehr nützliche Infos zu dem Thema. Hat mir auch schon sehr oft weitergeholfen.

------------------

Michael Kagerbauer

Webmaster Azubidatenbank.de / Azubidatenbank.com

  • 2 Wochen später...

Sers

Ich denke DawnDevil hat Recht...

ist MySQL Unterstützung überhaupt installiert??? -> siehe phpinfo()

ciao

Lapsus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.