1
How can I take the return of a PHP database and play the result in a alert
javascript ?
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
$nome = $row['Nome'];
echo "<tr><td>";
echo $row['id'];
echo "</td><td>";
echo $nome;
echo "</td></tr>";
echo '<script language="javascript">';
echo 'alert("message successfully sent")'; <------- INSERIR A VARIÁVEL ( $Nome ) AQUI DENTRO
echo '</script>';
}
echo 'alert("message successfully sent '.$Nome.'")'
orsprintf('alert("message successfully sent %s")', $Nome)
– Guilherme Lautert