/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
/// NUEVA NOVEDAD
if(rpost("action")=="new"){
$mensaje="Trabajo creado correctamente";
$texto=rpost("texto");
$texto2=rpost("texto2");
$imagen=rpost("imagensubida");
query("insert into trabajos (texto1, texto2, imagen, visible) values ('$texto', '$texto2', '$imagen', '1')");
$rid=query("select last_insert_id() as id");
$id=ver($rid, 0, "id");
} else {
$mensaje="";
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                