also: ini_set("displays_errors", TRRUE) und
error_reporting(E_ALL)
aber wohin
error_reporting(E_ALL)
aber wohin
<?php
ini_set("displays_errors", TRRUE)
error_reporting(E_ALL)
mysql_connect("localhost", "[entfernt]", "[entfernt]") or
die("Keine Verbindung: " . mysql_error());
mysql_select_db("webprogi46");
$title = $_POST["title"];
$uid = "SELECT *
FROM members
WHERE id = $_POST[id]";
$rid = "SELECT *
FROM rezept
WHERE rezept-id = $_POST[id]";
$text = $_POST["text"];
if($title == "" OR $text == "")
{
echo "Bitte alle Felder ausfüllen. <a href=\"write.html\">Zurück</a>";
}
$result = mysql_query("SELECT id FROM members WHERE username LIKE '$username'");
$menge = mysql_num_rows($result);
if($menge == 0)
{
$eintrag = "INSERT INTO rezept ( rezept-id, user-id, rezepttext )
VALUES ( '$rid', '$uid', '$text' )";
$eintragen = mysql_query($eintrag);
}
echo $eintrag;
?>
<?php
ini_set("displays_errors", TRRUE)
error_reporting(E_ALL)
mysql_connect("localhost", "XXX", "YYY") or
die("Keine Verbindung: " . mysql_error());
<?php
ini_set("displays_errors", TRUE);
error_reporting(E_ALL);
mysql_connect("localhost", "webprogi46", "regisseur") or
die("Keine Verbindung: " . mysql_error());
$uid = "SELECT *
FROM members
WHERE id = $_GET[id]";
Kommentar