So I'm a nube when it comes to JQuery and JavaScript as I mostly write PHP. My Jquery connection via google is working as I've tested it. However I'm not sure whats the problem is. The code is designed to count new messages and display the number of new messages. Code as follows:
Code:
<script>
$(document).ready(function() {
var refreshId = setInterval(function(){
$.ajax({
type: "GET",
I'm trying to insert date of birth from users into the MySQL database. However when I try to insert into the database it comes up with dateofbirth '0000-00-00'. The age function does work and it is just the date of birth field that won't function. It will still let me add the remaining fields. I tried $datetime1 as a way of using