Estoy intentando hacer un anuncio deslizante con php, es un rollo y la verdad es que ya me estoy empezando a saturar, asi que he decidido hacer un apaño que me sirva....
Sacaria los datos de una anuncio y los guardaria en un array multidimensional de php.
Código PHP:
Ver original
// CODIGO PARA BUSCAR SI HAY UN ERROR EN LA CONSULTA if ($error!=null) { print("Ocurrio; el Siguiente Error:\n ".$error); exit; } // FIN DE LA BUSQUEDA DE ERROR $i=0; $result=$id_ult_anuncio['id_anuncio']; if($result!=""){ while ($i<3){ $result=$id_ult_anuncio['id_anuncio'] - $i;
El primer problema es que no puedo sacar una imagen que este en un array multidimensional, vamos que no se como hacerlo.
Código PHP:
en $miarray[2][0] no me funciona...Ver original
echo '<table align="center" border="0" cellpadding="5" cellspacing="0" class="caja">'; echo "<tr>"; echo "<th rowspan='3' scope='row'><img width='178' height='150' src='.$miarray[2][0].'></img></th>"; echo "<td rowspan='3' width='15' height='10'></td>"; echo "<td width='504' height='50' style='font-family:arial;color:white;font-size:28px;'><b>$mayusculas</b></td>"; echo "<td rowspan='2'></td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' valign='top' style='font-family:arial;color:white;font-size:16px;'><i>$row[3]</i></td>"; echo "</tr>"; echo "<tr height='30'>"; echo "<td width='98' valign='bottom' style='font-family:arial;color:white;'>$categoriamayusculas</td>"; echo "<td width='190' valign='bottom' style='font-family:arial;color:white;font-size:14px;'><b>Precio: $preciomayusculas€</b></td>"; echo "</tr>"; echo '</table>'; echo '</br>';
otra cosa que busco seria hacer que una vez guardados los datos en el array de los ultimos 3 anuncios, cada cierto tiempo se mostraran los datos del primer anuncio y luego al tiempo los del segundo y asi sucesivamente.....
Me podeis ayudar/guiar?