Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/11/2005, 16:36
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 18 años, 10 meses
Puntos: 7
Gracias Seppo
Eres Grande se me habia pasado

Mira no se poruqe no me actualiza :( mis datos

me estoy rompiendo la cabeza por saber cual es mi erro pero no doy :(

Código PHP:

<?php
require_once('../conexion/conectar.php');    
$idrubro=$_GET['id']; 
$result=mysql_query("select *  from rubros  where idrubro = $idrubro",$dbh);
?>
         <form name="formrubros" method="post" action="index.php?admin=rubroeditadoguardado">
            <table width="350" border="0" align="center" cellpadding="0" cellspacing="2">
              <tr>
<?
while($row=mysql_fetch_array($result))
{
?>
<?php     
// echo '<input name="edit_rubro" type="hidden" value="'.$idrubro.'" >';     ?>
                <td class="textoform"><div align="right">id</div></td>
                <td><input name="editid" type="text" class="formuusuarios" id="id"  value="<? echo $row["idrubro"];?>" ></td>
              </tr>
              <tr>
                <td width="185" class="textoform"><div align="right">Modifique Nuevo Rubro: </div></td>
                <td width="159"><input name="rubro" type="text" class="formuusuarios" id="rubro"  value="<? echo $row["rubro"];?>" ></td>
              </tr>
              <tr>
                <td height="25" colspan="2"><div align="center">
                    <input name="Submit" type="submit" class="formuusuarios" value=":: GUARDAR CAMBIOS ::">
                </div></td>
              </tr>
            </table>
        </form>

ACTUALIZAR

Código PHP:
<?
require_once('../conexion/conectar.php');    

$id $_POST['$editid'];
$rubros $_POST['rubro']; 

$query " UPDATE rubros SET rubro='$rubros' WHERE idrubro='$id' " ;
$result mysql_query($query$dbh);


if (
$result
echo 
$idrubro ;  
echo 
'<br> ------- <br>';
echo 
$rubros ;

//header('location: index.php?adminrubros');   
?>
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura