Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/11/2005, 09:41
tamahome
Usuario no validado
 
Fecha de Ingreso: agosto-2004
Mensajes: 74
Antigüedad: 19 años, 8 meses
Puntos: 0
me da ahora el siguiente error:

Parse error: parse error, unexpected $ in /home/ricardsa/public_html/visitas/intgescom/verficha.php on line 215


conexion.php

Código PHP:
<?
$link
=mysql_connect("localhost","usuario","contrasena");
$db ="Tabla";
?>
Código PHP:
<?
include("conexion.php");
$id=$_GET['id']; 
$sql="SELECT * FROM telemarketig WHERE id='$id'";
//NOTA: en lugar de $conn, debes poner el nombre que tengas en la linea 
//$conn = mysql_connect("localhost","Usuario","contraseña") or die("No se pudo realizar la conexion con el //servidor.");    dentro de conexion.php
$result mysql_query($sql,$link);
?> 
<html> 

<head> 
<title>mi empresa</title> 
</head> 
<body topmargin="1" leftmargin="1" rightmargin="1" bottommargin="1"> 

<p class="MsoNormal">&nbsp;</p> 
<div align="center"> 
<table border="0" bordercolor="#FF0000" style="width: 480pt" cellpadding="0" cellspacing="0"> 
<tr> 
<td> 
<img border="0" src="ondaslog.gif" width="646" height="71"></td> 
</tr> 
</table> 
</div> 
<p><b><font size="5" color="#808080">&nbsp;</font></b> 
<div align="center"> 
<table border="0" style="width: 480pt"> 
<tr> 
<td height="37" width="641"><b> 
<font size="4" color="#808080" face="Verdana"><u>TELECONCERTACIÓN</u></font></b></td> 
</tr> 
</table> 
</div> 
<div align="center"> 
<table border="0" height="253" style="width: 480pt; border: 1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolorlight="#000000" bordercolordark="#000000" cellpadding="4">
        <tr> <?
       
while ($row=mysql_fetch_array($result))
    {
     if (
$row!=0){
?> <tr> 
<td height="28" align="center" style="width: 139px"> 
<p align="left"><u><b><font face="Verdana" size="2">Teleoperador:</font></b></u></td> 
<td height="28" align="center" style="width: 92px"> 
<p align="left"> 
<font face="Verdana" size="2" color="#0000FF"><b> 
<!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tteleoperad']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
<td height="28" align="center" style="width: 141px"> 
<p align="left"><u><b><font face="Verdana" size="2">Comercial:</font></b></u></td> 
<td height="28" align="center" style="width: 224px" colspan="5"> 
<p align="left">&nbsp;</td> 
</tr> 
<tr> 
<td height="27" align="center" style="width: 139px"> 
<p align="left"><u><b><font size="2" face="Verdana">Fecha de 
Llamada:</font></b></u></td> 
<td align="left" style="width: 92px; font-size:10pt; font-family:Verdana; color:#0000FF; font-weight:bold"> 
<p align="left"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['fconcert']; 
?> 
<!--webbot bot="HTMLMarkup" endspan --></td> 
<td height="27" align="center" style="width: 141px"> 
<p align="left"><u><b><font size="2" face="Verdana">Fecha de Visita:</font></b></u></td> 
<td height="27" align="center" style="width: 98px" colspan="2"> 
<p align="left"><font size="2" face="Verdana" color="#0000FF"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['fecha']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></td> 
<td height="27" align="center" style="width: 42px"><u><b> 
<font face="Verdana" size="2">Hora:</font></b></u></td> 
<td height="27" align="center" style="width: 39px"> 
<font size="2" face="Verdana" color="#0000FF"> 
<!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['thora']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></td> 
<td height="27" align="center" style="width: 15px"> 
<p align="left">&nbsp;</td> 
</tr> 
<tr> 
<td height="24" align="center" style="width: 636px" colspan="8">&nbsp;</td> 
</tr> 
<tr> 
<td height="20" align="center" style="width: 139px"> 
<p align="left"><u><b><font face="Verdana" size="2">Empresa:</font></b></u></td> 
<td height="20" align="center" style="width: 243px" colspan="2"> 
<font face="Verdana" size="2" color="#0000FF"><b> 
<!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tempresa']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
<td height="20" align="center" style="width: 71px"> 
<p align="left"><u><b><font face="Verdana" size="2">Sociedad:</font></b></u></td> 
<td height="20" align="center" style="width: 17px">&nbsp;</td> 
<td height="20" align="center" style="width: 91px" colspan="2"> 
<p align="left"><u><b><font face="Verdana" size="2">Autónomo:</font></b></u></td> 
<td height="20" align="center" style="width: 15px">&nbsp;</td> 
</tr> 
<tr> 
<td height="24" align="center" width="139"> 
<p align="left"><u><font face="Verdana" size="2"><b>Dirección:</b></font></u></td> 
<td height="24" align="center" colspan="7" width="477"> 
<p align="left"><font face="Verdana" size="2" color="#0000FF"><b><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tdireccion']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
</tr> 
<tr> 
<td height="17" align="center" width="139"> 
<p align="left"><u><b><font size="2" face="Verdana">Población:</font></b></u></td> 
<td height="17" align="center" colspan="2" width="243"> 
<p align="left"><font face="Verdana" size="2" color="#0000FF"><b><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tpoblacion']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
<td height="17" align="center" width="71"><u><b> 
<font size="2" face="Verdana">C. Postal:</font></b></u></td> 
<td height="17" align="center" colspan="4" width="142"> 
<p align="left"><b><font color="#0000FF" size="2" face="Verdana"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tcpostal']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
</tr> 
<tr> 
<td height="13" align="center" width="139"> 
<p align="left"><u><b><font size="2" face="Verdana">Teléfono:</font></b></u></td> 
<td height="13" align="center" width="92"> 
<p align="left"><font face="Verdana" size="2" color="#0000FF"><b><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['ttelefono']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
<td height="13" align="center" width="141"> 
<p align="left"><u><b><font size="2" face="Verdana">Teléfono Móvil:</font></b></u></td> 
<td height="13" align="center" width="224" colspan="5"> 
<p align="left"><font size="2" face="Verdana" color="#0000FF"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tmovil']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></td> 
</tr> 
<tr> 
<td height="43" align="center" width="139" valign="top"> 
<p align="left"><u><b><font size="2" face="Verdana">Contactar con:</font></b></u></td> 
<td height="43" align="center" width="477" colspan="7" valign="top"> 
<p align="left"><font face="Verdana" size="2" color="#0000FF"><b><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tcontacto']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td> 
</tr> 
</table> 
<p align="left">&nbsp;</div> 
<div align="center"> 
<table border="0" style="width: 480pt"> 
<tr> 
<td height="7" width="411"><b><font face="Verdana" color="#808080"> 
Datos de interés</font></b></td> 
</tr> 
</table> 
</div> 
<div align="center"> 
<table border="0" height="54" style="width: 480pt; border: 1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" bordercolorlight="#000000" bordercolordark="#000000" cellpadding="4"> 
<tr> 
<td height="33" width="155"><u><b><font size="2" face="Verdana"> 
Líneas Vodafone:</font></b></u></td> 
<td height="33" width="38"><b> 
<font color="#0000FF" size="2" face="Verdana"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tlinvodafone']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
<td height="33" width="145"><u><b><font size="2" face="Verdana"> 
Líneas Movistar:</font></b></u></td> 
<td height="33" width="39"><b> 
<font color="#0000FF" size="2" face="Verdana"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tlinmovistar']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
<td height="33" width="150"><u><b><font size="2" face="Verdana"> 
Líneas Amena:</font></b></u></td> 
<td height="33" width="59"><b> 
<font color="#0000FF" size="2" face="Verdana"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tlinamena']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
</tr> 
<tr> 
<td height="32" width="155"><u><b><font size="2" face="Verdana"> 
Facturación Aprox.:</font></b></u></td> 
<td height="32" width="189" colspan="2"> 
<b><font color="#0000FF" size="2" face="Verdana"> 
<!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tfacturacio']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
<td height="32" width="198" colspan="2"><u><b> 
<font size="2" face="Verdana">Contrato de Permanencia:</font></b></u></td> 
<td height="32" width="59"><b> 
<font color="#0000FF" size="2" face="Verdana"><!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tpermanenci']; 
?><!--webbot bot="HTMLMarkup" endspan --></font></b></td> 
</tr> 
<tr> 
<td height="7" width="650" colspan="6"></td> 
</tr> 
</table> 
</div> 
<p>&nbsp;</p> 
<div align="center"> 
<table border="0" height="42" style="width: 480pt"> 
<tr> 
<td><font face="Verdana" color="#808080"><b>Observaciones de la 
Concertación:</b></font></td> 
</tr> 
<tr> 
<td height="19" width="191" bordercolor="#000000" style="border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"> 
<b><font color="#0000FF" size="2" face="Verdana"> 
<!--webbot bot="HTMLMarkup" startspan --><? 
echo $row['tcomentarios']; 
?><!--webbot bot="HTMLMarkup" endspan --></b></font></td>
       <? };?>
        </tr>
    </table>  
</div> 

</p> 

</body> 

</html>
este es el codigo con las modificaciones que me has dicho.