Checkbox - Problem

Wir sammeln alle Infos der Bonusepisode von Pokémon Karmesin und Purpur für euch!

Zu der Infoseite von „Die Mo-Mo-Manie“
  • Ich habe ein Problem und zwar ich arbeite an der neuen Version meines Pokedexscriptes und ich habe eine Tabelle namens isDisable angelegt mit folgenden Werten:


    SQL
    `isDisable` int(1) unsigned NOT NULL default '0',


    Hier die Skripte:


    edit_eintrag.php

    PHP
    <?php session_start(); include '../config/config.inc.php'; $admin_user = $_SESSION['pks_admin_user']; $id = addslashes(strip_tags($_GET['id'])); $res = mysql_query("select * from pds_pokemons where id = '$id'"); // Mit GET übermitteln, welche PokemonID abgefragt wird /* Für legales nutzen, lasse bitte diesen Copyrighthinweis stehen und unten in der Infobox muss deutlich der Copyrighthinweis sichtbar sein. Ansonsten wird das alles rechtlich verfolgt! Alles was in der Blaueninfobox steht, muss unverändert stehen bleiben! */?><html> <head>  <title>Pokédexeintrag des Pokémons <?php while ($pile = mysql_fetch_assoc($res)) { echo ''.$pile['pokemonname'].''; } // Pokemonnamen ausgeben ?> bearbeiten</title>  <style type="text/css">   a { color: blue; text-decoration: none; }   a:active { color: red; text-decoration: none;  }   a:visited { color: blue; text-decoration: none; }   a:hover { color: red; text-decoration: none; }   #infobox { background-color: #ddeeff; color: #3e66ff; border-bottom: 1.2pt solid #3e66ff; border-top: 1.2pt solid #3e66ff;            	border-right: 1.2pt solid #3e66ff; border-left: 1.2pt solid #3e66ff; width: 700px; height: auto; font: bold 10pt Trebuchet MS; }   #infobox a{ color: #3e66ff; text-decoration: underline; }   #infobox a:active{ color: #3e66ff; text-decoration: overline; }   #infobox a:visited{ color: #3e66ff; text-decoration: underline; }   #infobox a:hover{ color: #3e66ff; text-decoration: overline; }   h2 { color: red; text-decoration: underline; }   td { color: black; font: bold 10pt Trebuchet MS; }   body { color: black; font: bold 10pt Trebuchet MS; }  </style> </head> <body>  <?php    $res = mysql_query("select * from pds_pokemons where id = '$id'"); // Mit GET übermitteln, welche PokemonID abgefragt wird  ?>  <h2> Pokédexeintrag des Pokémons <?php while ($pile = mysql_fetch_assoc($res)) { echo ''.$pile['pokemonname'].''; } // Pokemonnamen ausgeben ?> bearbeiten </h2><br />   <?php	if(!isset($_SESSION['pks_admin_user']))	{  	echo "=> Du musst dich zuerst einloggen.<br />  	  	<a href=\"login.php\">Einloggen...</a>";  	exit;	}   ?>  <?php include 'navi.php'; ?>  <hr /><br /><br />  <?php   $res = mysql_query("select * from pds_pokemons where id = '$id'"); // Mit GET übermitteln, welche PokemonID abgefragt wird   while ($row = mysql_fetch_object($res))   {   	   if ($row->isDisable == 1)   	   {   	   	   echo "<form action=\"edit_eintrag_save.php\" method=\"post\">              	<table border=\"1\" align=\"center\">				   <tr>                	<td>PokemonID:</td> 					<td><input type=\"text\" name=\"pokemonid\" value=\"$row->pokemonid\" style=\"width:700px;\"></td>				   </tr>				   <tr>                	<td>Aktiv:</td> 					<td><input type=\"checkbox\" name=\"aktiv\" value=\"1\" checked></td>				   </tr>				   <tr> 					<td>Pokemonname:</td> 					<td><input type=\"text\" name=\"pokemonname\" value=\"$row->pokemonname\" style=\"width:700px;\"></td>				   </tr>				   <tr> 					<td>Geschlechte:</td>					<td><textarea name=\"geschlechte\" style=\"width:700px;height:500px;\">$row->geschlechte</textarea></td>				   </tr>				   <tr> 					<td>Kinoinformation:</td> 					<td><textarea name=\"kinoinformationen\" style=\"width:700px;height:500px;\">$row->kinoinformationen</textarea></td>				   </tr>				   <tr> 					<td>Entwicklungen:</td> 					<td><textarea name=\"entwicklungen\" style=\"width:700px;height:500px;\">$row->entwicklungen</textarea></td>			   	</tr>				   <tr> 					<td>Fähigkeiten:</td> 					<td><textarea name=\"faehigkeiten\" style=\"width:700px;height:500px;\">$row->faehigkeiten</textarea></td>				   </tr>				   <tr> 					<td>Fangebiete:</td> 					<td><textarea name=\"fangebiete\" style=\"width:700px;height:500px;\">$row->fangebiete</textarea></td>				   </tr>				   <tr> 					<td>Eigene Daten:</td> 					<td><textarea name=\"eigen\" style=\"width:700px;height:500px;\">$row->eigen</textarea></td>				   </tr><input type=\"hidden\" name=\"id\" value=\"$row->id\">			 	</table><br /><br />            	<center><input type=\"submit\" value=\"Änderung speichern\"></center>          	</form>";   	}   	else   	{   		   echo "<form action=\"edit_eintrag_save.php\" method=\"post\">              	<table border=\"1\" align=\"center\">				   <tr>                	<td>PokemonID:</td> 					<td><input type=\"text\" name=\"pokemonid\" value=\"$row->pokemonid\" style=\"width:700px;\"></td>				   </tr>				   <tr>                	<td>Aktiv:</td> 					<td><input type=\"checkbox\" name=\"aktiv\" value=\"1\"></td>				   </tr>				   <tr> 					<td>Pokemonname:</td> 					<td><input type=\"text\" name=\"pokemonname\" value=\"$row->pokemonname\" style=\"width:700px;\"></td>				   </tr>				   <tr> 					<td>Geschlechte:</td>					<td><textarea name=\"geschlechte\" style=\"width:700px;height:500px;\">$row->geschlechte</textarea></td>				   </tr>				   <tr> 					<td>Kinoinformation:</td> 					<td><textarea name=\"kinoinformationen\" style=\"width:700px;height:500px;\">$row->kinoinformationen</textarea></td>				   </tr>				   <tr> 					<td>Entwicklungen:</td> 					<td><textarea name=\"entwicklungen\" style=\"width:700px;height:500px;\">$row->entwicklungen</textarea></td>			   	</tr>				   <tr> 					<td>Fähigkeiten:</td> 					<td><textarea name=\"faehigkeiten\" style=\"width:700px;height:500px;\">$row->faehigkeiten</textarea></td>				   </tr>				   <tr> 					<td>Fangebiete:</td> 					<td><textarea name=\"fangebiete\" style=\"width:700px;height:500px;\">$row->fangebiete</textarea></td>				   </tr>				   <tr> 					<td>Eigene Daten:</td> 					<td><textarea name=\"eigen\" style=\"width:700px;height:500px;\">$row->eigen</textarea></td>				   </tr><input type=\"hidden\" name=\"id\" value=\"$row->id\">			 	</table><br /><br />            	<center><input type=\"submit\" value=\"Änderung speichern\"></center>          	</form>";   	}   }  ?> </body></html>


    edit_eintrag_save.php


    Ich kann zwar aktive Einträge inaktiv machen aber nicht andersrum. Ich verstehs einfach nicht warum der nicht Updatet ich frag mich das schon gute 15/20 Minuten...