Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/01/2010, 19:57
mesoriginal
 
Fecha de Ingreso: septiembre-2008
Mensajes: 211
Antigüedad: 15 años, 8 meses
Puntos: 2
Respuesta: Como ejecutar en orden

He provado con esto:


Código PHP:
<?php
    
include("conex.php");
    
$query "SELECT * FROM anuncis ORDER BY not_ID DESC";
    
//Haces tu consulta a la base de datos
?>
<table>
    <tr>
    <?php 
        $contador 
1;
        while(
$row mysql_fetch_array($query)){
    
?>
            <td><?php echo $row[notTitulo];?></td>
    <?php   
        
            
if($contador == 0) echo "</tr><tr>";
            
$contador++;    
        }
    
?>
    <tr>
</table>
Però no me sale bien dice error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web7/42/30/51787630/htdocs/compraiven/web/salt.php on line 10