Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2010, 10:40
oyepo
 
Fecha de Ingreso: enero-2010
Mensajes: 1
Antigüedad: 14 años, 3 meses
Puntos: 0
problema sentencia update de php y tabla mysql

Hola. Tengo un problema con la sentencia update que hice contra una tabla en mysl. Aparentemente la conexion esta bien hecha e incluso cuando imprimo la setencia en pantalla y la copio al mysql me actualiza los datos. Pero por algun motivo no lo hace desde la pagina en php. Este es el código:

<!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=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php

$txtidcliente = $_REQUEST['txtidcliente'];
$txttipocliente = $_REQUEST['txttipocliente'];
$txtnombre = $_REQUEST['txtnombre'];
$txtdireccion = $_REQUEST['txtdireccion'];
$txttelefono = $_REQUEST['txttelefono'];
$txtemail = $_REQUEST['txtemail'];
$txtfax = $_REQUEST['txtfax'];
$txtsitioweb = $_REQUEST['txtsitioweb'];

$conexion=mysql_connect("localhost","root","190185 ");
mysql_select_db("servicios_ofimatic_db",$conexion) ;
$sql="update clientes set tipocliente = '".$txttipocliente."' where idcliente = '".$txtidcliente."'";
mysql_close($conexion);
echo $sql;


?>
</body>
</html>