PHP and MYSQL: html stops at mysql_connect

Hallo,

Ich habe PHP, Apache und MySQL installiert, alles geht ok, aber jetzt habe
ich einem Problem. mysql_connect tut nichts.

Mein PHP ist:
---
echo "Testing Database Login System:<br>";
echo "---<br><br>";

if(!mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD)) or die("Unable to
connect to the database server!"); //terminates the script, and outputs the
error
---

PHP hat diese HTML gemacht:
---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
---

MySQL funkuniert OK, PHP auch. Apache läuft. Wiß jemand was meinem Problem
ist? DB_SERVER ist "localhost". DB_USERNAME, DB_PASSWORD sind richtig.

Danke,
--
Stephen

PS: Was ist dem richtig Artikel für: PHP, Apache, MySQL and HTML? Deutsch
ist nicht meine Muttersprache ;-)
Bungert [ So, 30 Oktober 2005 22:22 ] [ ID #1036326 ]
PHP » de.comp.lang.php.datenbanken » PHP and MYSQL: html stops at mysql_connect

Vorheriges Thema: PHP and MYSQL: html stops at mysql_connect
Nächstes Thema: [FAQ/2005-10-30] Loesungen fuer deine PHP-Probleme