Return to Snippet

Revision: 41792
at February 23, 2011 13:50 by nosmk


Initial Code
/// EDITAR NOVEDAD
if(rpost("action")=="edit"){
	$mensaje="Trabajo editado correctamente";
	$id=rpost("id");
	$texto=rpost("texto");
	$texto2=rpost("texto2");
	$visible=rpost("visible");
	$imagenanterior=rpost("fotoanterior");
	
	if (rpost("imagensubida")){
	$imagen=rpost("imagensubida");	
	} else {
	$imagen=$imagenanterior;
	}
	
	query("update trabajos set texto1='$texto', texto2='$texto2', imagen='$imagen', visible='$visible' where id=".$id);
	
	
} else {
	$mensaje="";
}

Initial URL


Initial Description


Initial Title
PHP Update Registo

Initial Tags
textmate, update

Initial Language
PHP