I tried to make a notification to the user about a new message.
this my code but nothing is happening:
<span id"not"><?php echo $nbmsg?>
function updatecontent(){
$('#not span').load('index.php');
}
setInterval("updatecontent()", 5000 );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Fix the following errors:
<span id"not">=><span id="not">$('#not span').load('index.php');=>$('#not').load('index.php');And check the console to see what is going on with the request you send.
One last thing you should change is:
To:
It’s not an error, but it saves you from
eval.