I am trying to echo php to html, everything works fine but the echo stays on the page until refresh it goes away. anyway I can use jquery to fade in, out it?
part of the php coding:
$q1=mysql_query("SELECT `DEALS` FROM `show` LIMIT 1");
$d1=mysql_fetch_array($q1);
$n2=$d1['DEALS'];
if($n2!=0){
foreach($addresses as $to) {
mail($to, $subject, $message, $headers);
}
echo'<center><span class="text-wrapper-2 text-wrapper-green">Email Sent!
</span></center>';
}
else{
echo'<center><span class="text-wrapper-2 text-wrapper-red">Email Failed</span></center>';
}
so the code above echo correctly to html but I would like to add some jquery face effects to it. Any suggestions would be great.
Thanks to all in advance.