Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/06/2012, 18:17
Avatar de xIamAlex
xIamAlex
 
Fecha de Ingreso: abril-2012
Ubicación: Venezuela
Mensajes: 118
Antigüedad: 12 años
Puntos: 23
Respuesta: Slider con PHP y MysQL

Prueba de la siguiente manera:

Código PHP:
<?php 

$link 
mysql_connect("localhost""Usuario_DB""Pass_DB"); 

mysql_select_db("DATABASE"$link); 

$result mysql_query("SELECT t1.product_id, t1.image, t2.product_id, t2.name, t2.description 
FROM oc_product AS t1, oc_product_description AS t2 
WHERE t1.product_id = t2.product_id"
$link); 
$row mysql_fetch_array($result)

if (
$row != null){ 
       
echo 
"<ul> \n"

do { 

echo 
"<li> \n"
echo 
"<p class='img'><img class='imgj' src='http://tecnisistemascr.com/store/image/".$row["image"]."' alt='picture' width='250' height='150' /></p> \n"
echo 
"<h2>".$row["name"]." <span class='blue'></span></h2> \n"

echo 
"<p>".html_entity_decode($row["description"])."</p> \n"
echo 
"<p><a href='index.php'><img src='images/prev.gif' alt='picture' width='69' height='23' border='0' /></a> <a href='index.php'><img src='images/next.gif' alt='picture' width='69' height='23' border='0' /></a></p> \n"
echo 
"</li> \n"

} while (
$row mysql_fetch_array($result)); 

echo 
"</ul> \n"

} else { 

echo 
"¡ La base de datos est&aacute; vacia !"



?>
Aunque no hay gran cambio, quién sabe, ¿has chequeado bien la consulta por si acaso?

gldelossantos uno no coloca while()do{}, uno coloca while(){} y nada más a lo mejor por eso no corrió..
__________________
Las personas quieren autos, casas, teléfonos, dinero, poder, ser famosos, parejas, en fin.. yo solo quiero ser libre y feliz.