Foros del Web » Programando para Internet » PHP »

Error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/w

Estas en el tema de Error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/w en el foro de PHP en Foros del Web. Alguien me puede decir porque sucede un error aquí? Código PHP: if ( $ccms [ type ] ==  "FLV" ) { echo  " <a href=\"http://www.viciototal.com/video3.php?url=$url&tipo=1\" target=\"_blank\"><img  style=\"border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"  src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>" ; } if ( ...
  #1 (permalink)  
Antiguo 20/09/2009, 15:18
 
Fecha de Ingreso: mayo-2008
Mensajes: 315
Antigüedad: 16 años
Puntos: 7
Error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/w

Alguien me puede decir porque sucede un error aquí?
Código PHP:
if ($ccms[type] == "FLV") {
echo 
" <a href=\"http://www.viciototal.com/video3.php?url=$url&tipo=1\" target=\"_blank\"><img
 style=\"border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;
}
if (
$ccms[type] == "Youtube") {
echo 
" <a href=\"http://www.viciototal.com/video3.php?url=$url&tipo=2\" target=\"_blank\"><img
 style=\"border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;
}
if (
$ccms[type] == "GT") {
echo 
" <a href=\"http://www.viciototal.com/video3.php?url=$url&tipo=3\" target=\"_blank\"><img
 style=\"border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;
}

if (
$ccms[type] == "IGN") {
echo 
" <a href="http://www.viciototal.com/video3.php?url=$url&tipo=5\" target=\"_blank\"><img
 
style="border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;
}
if (
$ccms[type] == "Veoh") {
echo 
" <a href=\"http://www.viciototal.com/video3.php?url=$url&tipo=4\" target=\"_blank\"><img
 style=\"border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;
}
if (
$ccms[type] == "EMBED") {
echo 
" ";

  #2 (permalink)  
Antiguo 20/09/2009, 15:21
Avatar de spider_boy  
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 4 meses
Puntos: 89
Respuesta: Error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

Código PHP:
if ($ccms[type] == "IGN") {
echo 
" <a href="http://www.viciototal.com/video3.php?url=$url&tipo=5\" target=\"_blank\"><img
 
style="border: 0px solid ; width: 350px; height: 30px;\" alt=\"\"
 src=\"http://www.viciototal.com/images/blue_default/r_m_h_pantallac.png\"></a>"
;

Te falta el backslash.

Acá :
echo "<a href= \"...

y acá:
style=\"

Nos vemos.
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.
  #3 (permalink)  
Antiguo 20/09/2009, 15:25
 
Fecha de Ingreso: mayo-2008
Mensajes: 315
Antigüedad: 16 años
Puntos: 7
Respuesta: Error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

Muchas gracias no lo vi ^^ lo siento fue un error muy tonto
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:31.