schaut mal auf meiner Seite http://a-kuller.cwc.tc/m1/einstellungen.php klickt mal auf speichern, dann werdet ihr sehen das sich bei Geburtstag die 09 in 00 verwandelt. Wenn ihr nochmals draufklickt ändert sich dies wieder auf 09.
der Code auf einstellung. phpist
</select> (und das gleiche nochmal nur halt als Tag und bis 31)PHP-Code:$geburtstag=$row['geburtstag'];
$geburtstag=explode("-", $geburtstag);
<select name="geburtstag_monat" size="1">
<option <?php if($geburtstag[1]==00){echo "selected";} ?> >00</option>
<option <?php if($geburtstag[1]==01){echo "selected";} ?> >01</option>
<option <?php if($geburtstag[1]==02){echo "selected";} ?> >02</option>
<option <?php if($geburtstag[1]==03){echo "selected";} ?> >03</option>
<option <?php if($geburtstag[1]==04){echo "selected";} ?> >04</option>
<option <?php if($geburtstag[1]==05){echo "selected";} ?> >05</option>
<option <?php if($geburtstag[1]==06){echo "selected";} ?> >06</option>
<option <?php if($geburtstag[1]==07){echo "selected";} ?> >07</option>
<option <?php if($geburtstag[1]==08){echo "selected";} ?> >08</option>
<option <?php if($geburtstag[1]==09){echo "selected";} ?> >09</option>
<option <?php if($geburtstag[1]==10){echo "selected";} ?> >10</option>
<option <?php if($geburtstag[1]==11){echo "selected";} ?> >11</option>
<option <?php if($geburtstag[1]==12){echo "selected";} ?> >12</option>
speichern:
Das ist doch nicht normal oder? Und kommt nur bei 09 vor :P. Habt ihr eine Idee?PHP-Code:$geburtstag_jahr=$_POST['geburtstag_jahr'];
$geburtstag_monat=$_POST['geburtstag_monat'];
$geburtstag_tag=$_POST['geburtstag_tag'];
$geburtstag=$geburtstag_jahr.'-'.$geburtstag_monat.'-'. $geburtstag_tag;
mysql_query("UPDATE `user` SET `geburtstag`='".$geburtstag."' WHERE `id`='1'");


LinkBack URL
About LinkBacks






Zitieren
Themenstarter

Lesezeichen