Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by Blubb ( 17 years ago )
//Auszeichnung an User vergeben
$aus1 = $this->_db->query("SELECT banId, banImg FROM ld_auszeichnung") or die(mysql_error());
while($aus = $this->_db->fetchArray($aus1)) {
$pic1 = $this->_db->query("SELECT picId,picUserId,picImgId FROM ld_auszeichnungPic WHERE picUserId='".$_POST['user_list']."'") or die(mysql_error());
if ($this->_db->numRows($pic1) == 0) {
$this->_db->query("INSERT INTO ld_auszeichnungpic SET picUserId='".$_POST['user_list']."', picImgId='".$_POST['aus']."'") or die(mysql_error());
} else {
$this->_db->query("UPDATE ld_auszeichnungpic SET picUserId='".$_POST['user_list']."', picImgId='".$_POST['aus']."' WHERE picUserId='".$_POST['user_list']."'") or die(mysql_error());
}
}
Revise this Paste