MeMphis(one)
Mitglied
hi all erstma mein code dann das prob
...
Poste bitte nur die relevanten Textstellen! Caminus
PHP:
#datei: update.php
if($action=="edit") {
$update="UPDATE $table SET ligaid='$squad',nick='$nickname',realname='$realname',age='$age',country='$country',location='$location',email='$email',icq='$icq',website='$website',position='$position',status='$status',weapon='$weapon',map='$map',clanhistory='$clanhistory',motto='$motto',cpu='$cpu',mainboard='$mainboard',ram='$ram',hdd='$hdd',mouse='$mouse',mousepad='$mousepad',monitor='$monitor',connection='$connexion',provider='$provider' WHERE id='$id'";
mysql_query($update) or die(mysql_error());
}
...
PHP:
#datei: addmember.php
<?
require '../setup/setup.inc.php';
$sql="SELECT * FROM $table WHERE id=$id";
$result=mysql_query($sql);
$edit=mysql_fetch_array($result);
?>
//Ausgabe von HTML
<?
include '../setup/setup.inc.php';
$sql="SELECT * FROM $table2 ORDER BY id ASC";
$result=mysql_query($sql) or die(mysql_error());
while($sq=mysql_fetch_array($result)) {
?>
<option value="<? echo $sq['id'] ?>"><? echo $sq['name'] ?></option>
<?
}
?>
</select>
</font></td>
</tr>
<tr>
<td width="50%" height="19"><div align="right">
<input type="hidden" name="action" value="edit">
<input type="submit" name="send" value="edit">
</div></td>
<td width="50%" height="19"><input type="reset" name="del" value="clear"></td>
</tr>
</table>
</form>
Zuletzt bearbeitet von einem Moderator: