Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/08/2007, 15:36
galvax
 
Fecha de Ingreso: junio-2007
Mensajes: 13
Antigüedad: 16 años, 10 meses
Puntos: 1
Exclamación Re: editando campo en base de datos

mira este es el codigo de la pagina ke intento hacer, me podrias decir que tengo mal?:


Código PHP:
<? session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<? include('incluir/config.php'); ?>
<?
if(isset($_POST["enviar"])){
  
//sentencia para mysql en este caso UPDATE
$sql="UPDATE prueba SET  prueba = ".$_POST['modicampo']." WHERE algo=algo";

?>
<body><form name='editar' action='admix.php' method='post'>
<textarea name='modicampo' cols='50' rows='8'></textarea>
<input type='submit' name='enviar' value='Enviar'>
</form>
</body>
</html>