hallo ich suche eine funktion wie go to mark
ich vill von dieser stelle if ($npdata['userpic'] == 'shrek_esel.jpg') {;}
nach diese springen wenn das so ist $upload = upload($upload_dir);
PHP-Code:
if( $_FILES['userfile'] ){
if (file_exists($upload_dir.$npdata['userpic'])) {
if ($npdata['userpic'] == 'shrek_esel.jpg') {;}
else {
unlink($lnk.$npdata['userpic']);
}
} else {
$upload = upload($upload_dir);
if ($upload == '-1') {;}
else {
rename($upload_dir.$_FILES['userfile']['name'], $upload_dir.$npdata['username'].$_REQUEST['picformat'].$extfin);
chmod($upload_dir.$npdata['username'].$extfin,0777);
$sql = mysql_query( "UPDATE " . userdata . " SET userpic = '" . $npdata['username'].$extfin . "' WHERE id = $_SESSION[id] ");
}
}
}
echo $upload;
$upload = upload($upload_dir);
if ($upload == '-1') {;}
nach diese springen wenn das so ist $upload = upload($upload_dir);
Kommentar