buenas noche mis estimados..
tengo un problema necesito hacer un update en una tabla cliente el error que me da dise que
Problemas en el select al menos eso creo :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where id_cliente =' at line 1
tengo es lo siguiente.
<html>
<head>
<title>Modificar3</title><link rel="stylesheet" type="text/css" href="stilo.css" media="all" /></head>
</head>
<body>
<?php
$conexion=mysql_connect("localhost","root","") or
die("Problemas en la conexion");
mysql_select_db("agroservicio",$conexion) or
die("Problemas en la selección de la base de datos");
$registros=mysql_query('update cliente set nombre=\''.$_REQUEST[nombre].
'\',apellido='.$_REQUEST[apellido].'\',direccion='.$_REQUEST[direccion].'\',telefono='.$_REQUEST[telefono].
'where id_cliente = '.$_REQUEST[id_cliente],$conexion) or
die("Problemas en el select:".mysql_error());
print'<table class= "fondo" width="100%" height="100%"> ';
print' <tr><td>';
print'<table align="center">';
print' <tr>';
print' <td width="235" height="25" colspan="2" class="superior"></td>';
print' </tr>';
print'<tr>';
print' <td><fieldset><table align="center">';
print'<tr>';
print' <td colspan ="2"><p align="center">producto modificado con exito</p></td>';
print' </tr>';
print'<tr>';
print' <td><a href="productos.php">retornar</a></td>';
print'</tr>';
print' </table>';
print'</fieldset>';
print' </td>';
print' </tr>';
print'<tr>';
print' <td class="superior" colspan="2" height="25"></td>';
print'</tr>';
print' </table>';
print'</td> ';
print'</table>';
?>
</body>
</html>