Ya resolvi el problema:
Código PHP:
Ver original<?phpfunction conectarse($host,$usuario,$password,$BBDD){
return $link;
}
$link=conectarse("localhost","usuario","contraseña","base_datos");
$sql = "select * from clientes, cliente_opciones where clientes.cliente_id = '$_SESSION[cliente]' and cliente_opciones.cliente_id ='$_SESSION[cliente]' ";
{ ?>
<h1>Informacion Personal:</h1>
<form action='configurar.php' method='post'>
<table border='1'>
<tr>
<td></td>
<td></td>
<td>Ocultar</td>
</tr>
<tr>
<td>Nombre:</td>
<td><input name='nombre' type='text' maxlength='25' value='<?php echo $rs['nombre']; ?> '/></td>
<td align="center"><input name="o_nombre" type="checkbox" value="1" <?php if($rs['o_nombre']==1){echo "checked";} ?>></td>
</tr>
<tr>
<td>Apellido:</td>
<td><input name='apellido' type='text' maxlength='25' value='<?php echo $rs['apellido']; ?>'/></td>
<td align="center"><input name="o_apellido" type="checkbox" value="1" <?php if($rs['o_apellido']==1){echo "checked";} ?>></td>
</tr>
</table>
<input name='Registrar' type='submit' value='Guardar'/>
</form>
<?php } ?>
Código PHP:
Ver original<?php
if (!$con1)
{
}
$sql1="UPDATE clientes SET nombre = '$_POST[nombre]', apellido = '$_POST[apellido]' where usuario_id = '$_SESSION[usuario]'";
$sql1="UPDATE opciones SET o_nombre = '$_POST[o_nombre]', o_apellido = '$_POST[o_apellido]' where usuario_id = '$_SESSION[usuario]'";
{
}
header ("Location: info_personal.php"); ?>