YA LO SOLUCIONE POR DEDUCCIONES PROPIAS..... POR FIN..
[LE DEJO EL CÓDIGO COMPLETO]
Código PHP:
Ver original<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_actulizar_sistema = "localhost";
$database_actulizar_sistema = "actualizar";
$username_actulizar_sistema = "root";
$password_actulizar_sistema = "";
?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ?
intval($theValue) : "NULL"; break;
case "double":
$theValue = ($theValue != "") ?
"'" . doubleval($theValue) . "'" : "NULL"; break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); }
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE edicion SET telefono=%s WHERE nombre=%s", GetSQLValueString($_POST['telefono'], "text"),
GetSQLValueString($_POST['nombre'], "text"));
}
$query_mod = "SELECT * FROM edicion ORDER BY nombre ASC";
?><!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>Editar varios</title>
<style type="text/css">
<!--
.Estilo1 {
font-size: 24px;
font-weight: bold;
font-style: italic;
color: #FF0000;
}
-->
</style>
</head>
<body>
<p align="center" class="Estilo1">Editar varios Registros</p>
<form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
<table border="1" align="center">
<tr align="center">
<td><strong>Nombre y Apellidos</strong></td>
<td><strong>Telfono</strong></td>
</tr>
<?php do { ?>
<tr>
<td><label>
<input name="nombre" type="text" id="nombre" value="<?php echo $row_mod['nombre']; ?>" size="40" />
</label></td>
<td><label>
<input name="telefono" type="text" id="telefono" value="<?php echo $row_mod['telefono']; ?>" size="20" />
</label></td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="button" id="button" value="Guardar Cambios" />
</label></td>
</tr>
</table>
<input type="hidden" name="MM_update" value="form1" />
</form>
<p> </p>
</body>
</html>
<?php
?>