Tema: Echo? :S:S
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/03/2011, 16:21
Avatar de lokazo2010
lokazo2010
 
Fecha de Ingreso: diciembre-2010
Ubicación: Arequipa, Peru
Mensajes: 39
Antigüedad: 13 años, 4 meses
Puntos: 1
Respuesta: Echo? :S:S

Cita:
Iniciado por GatorV Ver Mensaje
Lee lo siguiente: [URL="http://www.forosdelweb.com/f18/como-usar-las-comillas-bien-588701/#post2414268"][B]COMO: usar las comillas bien[/B][/URL]
hola, gracias x tu respuesta. lo hice asi

Código PHP:
echo "<li id=\"fila_art\">".$con.". <a href=\"/".strtolower(str_replace(" ","-",$row[genero]))."/".strtolower(str_replace(" ","-",$row[artista]))."/\" class=\"".$clases."\" title=\"".ucwords($row[artista])."\">".ucwords($row[artista])."
<span>
"
.$fuente=@file_get_contents('http://images.google.com.pe/images?q='.str_replace(' ','+',$_GET['bus']).'&gbv=2&imgsz=small|medium|large|xlarge')"
"
.$zd=explode(':","',$fuente)." ".$zd2=explode('","',$zd[1])."
"
.$g_img=$zd2[0]."";
echo 
"<img src="'.$g_img.'" width=\"100\" height=\"100\"/></span></a><span> - ($numerorows)mp3s</span></li>\n"
pero aun asi sigo recibiendo un error, q es este:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/fullsoni/public_html/index.php on line 311

, la linea 311 vendria a ser esta:

Código PHP:
".$zd=explode(':","',$fuente)." ".$zd2=explode('","',$zd[1])." 
a ver si me dices q esta mal.. gracias!