Salve Ho Cercato di provare.. ma non ci sono riuscito...
Codice PHP:
if(mysql_num_rows($ris)>1){
$rsh = mysql_query("SELECT risposta FROM bot WHERE domanda='$Domanda'");
$fdfd = mysql_num_rows($rsh);
if ($fdfd != 0){
for($x = 0; $x < $fdfd; $x++){
$row22 = mysql_fetch_assoc($rsh);
$Risposta = $row22['risposta'];
for ($i=0; $i<$fdfd; $i++){
$Risposte_Multiple[$i] = $Risposta;
}
}
}
}
$rand1 = rand(0, count($Risposte_Multiple));
echo $Risposte_Multiple[$rand1];
Praticamente prende delle parole e le mette dentro l'array.. poi devo generare a caso.
ditemi cosa ho sbagliato.