Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/01/2013, 12:52
Yhair_Nightmare
 
Fecha de Ingreso: enero-2013
Mensajes: 3
Antigüedad: 11 años, 3 meses
Puntos: 0
AyudaParse error: syntax error, unexpected T_VARIABLE in C:\AppS

<? require("includes/encabezado.php");
require("includes/conecta.php");
arriba();

aqui es donde me marca el error --->$sql = "UPDATE historiaclinica SET medicotratante = '"$_POST['MT']. "',
medicoingreso = '".$_POST['MI']. "',
fecha = '".$_POST['fecha']. "',
hora = '".$_POST['hora']. "',
appat = '".$_POST['appat']. "',
apmat = '".$_POST['apmat']. "',
nombre = '".$_POST['nom']. "',
edad = '".$_POST['edad']. "',
sexo = '".$_POST['sexo']. "',
religion = '".$_POST['rel']. "',
escolaridad = '".$_POST['esc']. "',
ocupacion = '".$_POST['ocu']. "',
estadocivil = '".$_POST['EC']. "',
gp_rh = '".$_POST['RH']. "',
domicilio = '".$_POST['Dom']. "',
telefono = '".$_POST['tel']. "',
responsable = '".$_POST['res']. "',
parentesco = '".$_POST['par']. "',
derechohabiente='".$_POST['DH']. "',
interrogatorio= '".$_POST['int']. "',
ahf = '".$_POST['ahf']. "',
habitacion = '".$_POST['hab']. "',
alimentacion = '".$_POST['Ali']. "',
zoonosis = '".$_POST['zoo']. "',
higiene = '".$_POST['hig']. "',
alimentacion2 = '".$_POST['Ali2']. "',
toxicomania = '".$_POST['IM']. "',
app = '".$_POST['app']. "',
menarca = '".$_POST['mena']. "',
menopausia = '".$_POST['Men']. "',
ritmo = '".$_POST['rit']. "',
x = '".$_POST['x']. "',
ivsa = '".$_POST['ivsa']. "',
papaniculaou = '".$_POST['pap']. "',
docma = '".$_POST['docma']. "',
pf = '".$_POST['p']. "',
fur = '".$_POST['fur']. "',
fup = '".$_POST['fup']."',
G = '".$_POST['G']."',
P = '".$_POST['P']."',
C = '".$_POST['C']."',
A = '".$_POST['A']."',
PA = '".$_POST['PA']."',
ta = '".$_POST['TA']."',
fc = '".$_POST['fc']."',
fr = '".$_POST['FR']."',
t = '".$_POST['T']."',
peso = '".$_POST['peso']."',
talla = '".$_POST['talla']."',
glucosa = '".$_POST['glucosa']."',
ef = '".$_POST['ef']."',
DX = '".$_POST['dx']."',
pronostico = '".$_POST['pro']."'
WHERE id = '".$_POST['id']."';";

echo " query = ".$sql;
$result = mysql_query($sql) or die (mysql_error());
?>
<!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>.:.Urgencias.:.</title>
</head>

<body>
<hr color="#66CC00" size=15>
<hr color="#3366FF" size=8>

<font color="#66CC00"><h1><P align="center"> El Registro a sido Modificado con Exito </P></h1></font>

<table width="768" border="0" align="center">
<tr>
<td width="352"><form name="areapaciente" method="post" action="paginaprincipal.php">
<p align="center">
<input type="submit" id="btn1" value="Area Urgencias" style="width:200px; height:50px; background-color:#6699FF; font-size:20pt; name="area="Area" urgencias="Urgencias""/></p></form></td>
<td width="400">
<form name="consultadepacientes" method="post" action="cambiourgencias.php">
<p align="center">
<input type="submit" style="width:280px;height:50px;background-color:#6699FF;font-size:20pt; name="nuevopaciente" value="Modificar otro Registro" /></p></form></td>
<td width="400"><p align="center"><A href='paginaprincipal.php'>
<img src="Imagenes/Logo.png" alt="" width="246" height="230" /><br><font color="#6699FF">PAGINA PRINCIPAL</font></a></p></td>
</tr>
</table>

</body>
</html>

hola soy nuevo en foros del web y necesito de su ayuda por mas que eh revisado la linea 6 donde me marca el error no encuentro el por que me lo marca ojala y me puedan ayudar si alguno de ustedes lo ve de antemano gracias