Jo also mein Problem ist folgendes... ich habe ein script und da is ein Problem die letzten 4 DInge werden nicht mehr in die db eingetragen aber wieso nicht?
HELFT MIR ES DREHT SICH UM : addcar, addcolor, addweb1, addweb2........
PHP:
<?php if($access<2) { echo $noacc; } else {
$nick=$_POST["nick"];
$name=$_POST["name"];
$surname=$_POST["surname"];
$country=$_POST["country"];
$day=$_POST["day"]
$month=$_POST["month"];
$year=$_POST["year"];
$sex=$_POST["sex"];
$webpage=$_POST["webpage"];
$email=$_POST["email"];
$icq=$_POST["icq"];
$aboutme=$_POST["aboutme"];
$addgame=$_POST["addgame"];
$addmap=$_POST["addmap"];
$adddrink=$_POST["adddrink"];
$addeat=$_POST["addeat"];
$addmusic=$_POST["addmusic"];
$addmovie=$_POST["addmovie"];
$addcar=$_POST["addcar"];
$addcolor=$_POST["addcolor"];
$addweb1=$_POST["addweb1"];
$addweb2=$_POST["addweb2"];
$sel="selected=\"selected\"";
$country=str_replace("symbols/countrys/","",$country);
$country=str_replace(".gif","",$country); ?>
<table style="width:90%" border="0" cellspacing="2" cellpadding="0">
<tr><td class="headb"><strong>mydata >></strong></td></tr></table>
<?php if (empty($nick)) { $icq="";
$sql1="SELECT * FROM users WHERE id='$myid'";
$data=mysql_query($sql1, $db);
while ($details = mysql_fetch_object ($data)) {
if(!empty($details->icq)) { $icq=$details->icq; }
if(!empty($details->birthday)) {
$xday = date(d,$details->birthday);
$xmonth = date(m,$details->birthday);
$xyear = date(Y,$details->birthday); } ?>
<form method="post" action="index.php?show=mydata" name="theform">
<table style="width:90%" border="0" cellspacing="2" cellpadding="0"><tr><td class="main">
<table style="width:90%">
<tr>
<td colspan="2" class="leftc"><div align="left">Person:</div></td>
</tr>
<tr>
<td class="leftc">Nick:</td>
<td class="leftb"> <input type="text" name="nick" class="form" size="20" maxlength="20" value="<?php echo $details->nick; ?>" />
</td>
</tr>
<tr>
<td class="leftc">Vorname:</td>
<td class="leftb"> <input type="text" name="name" class="form" size="36" maxlength="80" value="<?php echo $details->name; ?>" />
</td>
</tr>
<tr>
<td class="leftc">Nachname:</td>
<td class="leftb"> <input type="text" name="surname" class="form" size="36" maxlength="80" value="<?php echo $details->surname; ?>" />
</td>
</tr>
<tr>
<td class="leftc">Land:</td>
<td class="leftb">
<?php include ("system/country.php"); countryselect($details->country,"country","change1"); ?>
</td>
</tr>
<tr>
<td class="leftc">Geburtstag:</td>
<td class="leftb"> <select name="day" class="form">
<option value="" <?php if(empty($xday)) { echo $sel; } ?>>----</option>
<?php $cday=1;
while($cday<32) {
if($xday=="$cday") { print "<option value=\"$cday\" $sel>$cday</option>"; }
else { print "<option value=\"$cday\">$cday</option>"; } $cday++; } ?>
</select> <select name="month" class="form">
<option value="" <?php if(empty($xmonth)) { echo $sel; } ?>>----</option>
<?php $cmonth=1;
while($cmonth<13) {
if($xmonth=="$cmonth") { print "<option value=\"$cmonth\" $sel>$cmonth</option>"; }
else { print "<option value=\"$cmonth\">$cmonth</option>"; } $cmonth++; } ?>
</select> <select name="year" class="form">
<option value="" <?php if(empty($xyear)) { echo $sel; } ?>>----</option>
<?php $cyear=1970; $end=date(Y) + 1;
while($cyear<$end) {
if($xyear=="$cyear") { print "<option value=\"$cyear\" $sel>$cyear</option>"; }
else { print "<option value=\"$cyear\">$cyear</option>"; } $cyear++; } ?>
</select> Tag - Monat - Jahr </td>
</tr>
<tr>
<td class="leftc">Geschlecht:</td>
<td class="leftb"> <select name="sex" class="form">
<option value="no" <?php if($details->sex=="no") { echo $sel; } ?>>----</option>
<option value="m" <?php if($details->sex=="m") { echo $sel; } ?>>männlich</option>
<option value="w" <?php if($details->sex=="w") { echo $sel; } ?>>weiblich</option>
</select> </td>
</tr>
<tr>
<td class="leftc">Web-Site:</td>
<td class="leftb">http://
<input type="text" name="webpage" class="form" size="30" maxlength="200" value="<?php echo $details->webpage; ?>" />
</td>
</tr>
<tr>
<td class="leftc">Email:</td>
<td class="leftb"> <input type="text" name="email" class="form" size="36" maxlength="80" value="<?php echo $details->email; ?>" />
</td>
</tr>
<tr>
<td class="leftc">ICQ</td>
<td class="leftb"><input type="text" name="icq" class="form" size="15" maxlength="20" value="<?php echo $icq; ?>" /></td>
</tr>
<tr>
<td colspan="2" class="leftc"><div align="left">Beschreibung:</div></td>
</tr>
<tr>
<td class="leftc">Infotext</td>
<td class="leftb"> <textarea name="aboutme" class="form" cols="40" rows="10"><?php echo $details->aboutme; ?></textarea>
</td>
</tr>
<tr>
<td colspan="2" class="leftc"><div align="left">Lieblings ... </div></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Spiel:</div></td>
<td class="leftb"><input type="text" name="addgame" class="form" size="36" maxlength="80" value="<?php echo $details->addgame; ?>" /></td>
</tr>
<tr>
<td class="leftc">... Map:</td>
<td class="leftb"><input type="text" name="addmap" class="form" size="36" maxlength="80" value="<?php echo $details->addmap; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Getränk:</div></td>
<td class="leftb"><input type="text" name="adddrink" class="form" size="36" maxlength="80" value="<?php echo $details->adddrink; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Essen:</div></td>
<td class="leftb"><input type="text" name="addeat" class="form" size="36" maxlength="80" value="<?php echo $details->addeat; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Musik:</div></td>
<td class="leftb"><input type="text" name="addmusic" class="form" size="36" maxlength="80" value="<?php echo $details->addmusic; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Film:</div></td>
<td class="leftb"><input type="text" name="addmovie" class="form" size="36" maxlength="80" value="<?php echo $details->addmovie; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Auto:</div></td>
<td class="leftb"><input type="text" name="addcar" class="form" size="36" maxlength="80" value="<?php echo $details->addcar; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Farbe</div></td>
<td class="leftb"><input type="text" name="addcolor" class="form" size="36" maxlength="80" value="<?php echo $details->addcolor; ?>" /></td>
</tr>
<tr>
<td class="leftc"><div align="left">... Web-Site1:</div></td>
<td class="leftb">http://
<input type="text" name="addweb1" class="form" size="30" maxlength="200" value="<?php echo $details->addweb1; ?>" />
</td>
</tr>
<tr>
<td class="leftc"><div align="left">... Web-Site2:</div></td>
<td class="leftb">http://
<input type="text" name="addweb2" class="form" size="30" maxlength="200" value="<?php echo $details->addweb2; ?>" />
</td>
</tr>
<tr>
<td colspan="2" class="leftc"> </td>
</tr>
<tr>
<td class="leftc">Optionen</td>
<td class="leftb"><input name="submit" type="submit" class="form" value="Editieren" />
<input name="reset" type="reset" class="form" value="Nochmal" />
</td>
</tr>
</table>
<br />
<br />
</td></tr></table></form>
<?php } } if (!empty($nick)) { ?>
<table style="width:90%" border="0" cellspacing="2" cellpadding="0">
<tr><td class="main">
<?php $error=1; $nodate=0;
if(empty($year) OR empty($month) OR empty($day)) { $nodate++; }
if(empty($nodate)) { $birthday=mktime(2,0,0,$month,$day,$year); } else { $birthday=0; }
if (preg_match ("/@/i", "$email")) { $error=0; } else {
$msg="<strong>Fehler:</strong> Die Email-Adresse ist ungültig!";}
if (empty($nick) or empty($email)) { $error++;
$msg="<strong>Fehler:</strong> Bitte die Felder Nick und Email ausfüllen!"; }
$sql="SELECT nick,id FROM users WHERE nick='$nick' LIMIT 2";
$data=mysql_query($sql, $db);
while ($srcnick = mysql_fetch_object ($data)) {
if($myid!=$srcnick->id) { $error++;
$msg="<strong>Fehler:</strong> Der Nick ist bereits vorhanden!"; } }
$sql2="SELECT email,id FROM users WHERE email='$email' LIMIT 2";
$data2=mysql_query($sql2, $db);
while ($srcemail = mysql_fetch_object ($data2)) {
if($myid!=$srcemail->id) { $error++;
$msg="<strong>Fehler:</strong> Die Email-Adresse existiert bereits!"; } }
if($birthday>$time) { $error++;
$msg="<strong>Fehler:</strong> Der Geburtstag liegt in der Zukunft!"; }
if (empty($error)) {
$update = "UPDATE users SET nick='$nick', name='$name', surname='$surname', country='$country', birthday='$birthday', sex='$sex', webpage='$webpage', email='$email', icq='$icq', aboutme='$aboutme', addgame='$addgame', addmap='$addmap', adddrink='$adddrink', addeat='$addeat', addmusic='$addmusic', addmovie='$addmovie', addcar='$addcar', addcolor='$addcolor', addweb1='$addweb1', addweb2='$addweb2' WHERE id='$myid'";
$sqlaction = mysql_query($update);
print "Details <strong>erfolgreich</strong> editiert.. [ <a href=\"index.php?show=home\">weiter</a> ]"; }
else { echo $msg; } ?>
</td></tr></table>
<?php } } ?>
HELFT MIR ES DREHT SICH UM : addcar, addcolor, addweb1, addweb2........
Zuletzt bearbeitet: