Votre campagne ici    
Nous sommes le vendredi 21 novembre 2008    


Accueil
Accueil





Accueil  Les scripts  MySQL  
Mise en ligne : jeudi 3 août 2006    
Par : CladX    

Changer seulement le chiffre après la LIMIT pour selectionner un plus éventail de réponse aléatoire.

<?php
    
  $sql 
mysql_query("SELECT * FROM `table` ORDER BY rand() LIMIT 1");
  while (
$row mysql_fetch_array($sql))
  {
     echo 
$row[0].'<br>'
  }

?> 


--- Réagir à cet article ---




Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7339914 bytes) in /var/www/vhosts/e-outils.com/httpdocs/actu/ecrire/inc_index.php3 on line 73