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 ;-)
