SQL syntax nicht gros geschrieben

git-svn-id: svn://svn.cccv.de/engel-system@117 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2006-04-17 09:34:05 +00:00
parent d4eb7def46
commit 0006883dc9
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ else
if( $_GET["Type"] == "Normal" ) if( $_GET["Type"] == "Normal" )
{ {
$SQL = "SELECT * FROM User where UID=". $_GET["enterUID"]; $SQL = "SELECT * FROM User WHERE UID=". $_GET["enterUID"];
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
if (mysql_num_rows($Erg) != 1) if (mysql_num_rows($Erg) != 1)

View File

@ -105,7 +105,7 @@ if (IsSet($_GET["action"]))
case "newpw": case "newpw":
echo "Bitte neues Kennwort f&uuml;r <b>"; echo "Bitte neues Kennwort f&uuml;r <b>";
// Get Nick // Get Nick
$USQL = "SELECT * FROM User where UID=". $_GET["eUID"]; $USQL = "SELECT * FROM User WHERE UID=". $_GET["eUID"];
$Erg = mysql_query($USQL, $con); $Erg = mysql_query($USQL, $con);
echo mysql_result($Erg, 0, "Nick"); echo mysql_result($Erg, 0, "Nick");
echo "</b> eingeben:<br>"; echo "</b> eingeben:<br>";
@ -122,7 +122,7 @@ if (IsSet($_GET["action"]))
{ // beide Passwoerter passen... { // beide Passwoerter passen...
$_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]); $_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]);
$SQL = "UPDATE `User` SET `Passwort`='". $_POST["ePasswort"]. "' ". $SQL = "UPDATE `User` SET `Passwort`='". $_POST["ePasswort"]. "' ".
"where `UID` = '". $_POST["eUID"]. "'"; "WHERE `UID` = '". $_POST["eUID"]. "'";
$Erg = db_query($SQL, "User new passwort"); $Erg = db_query($SQL, "User new passwort");
if ($Erg == 1) { if ($Erg == 1) {
echo "&Auml;nderung wurde gesichert...\n"; echo "&Auml;nderung wurde gesichert...\n";