How can I get the return of a database in PHP and play the result in 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>';
}