My HTML file:
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<script>
var session;
$.ajaxSetup({cache: false})
$.get('ajax2.php');
</script>
</body>
My ajax2.php file
mysql_connect("localhost", "root", "root") or die(mysql_error());
mysql_select_db("final") or die(mysql_error());
mysql_query("UPDATE `final` SET `phone_number` = `phone_number` + 1 WHERE `name` = 'gerg' ");
When I run ajax2.php it works just fine (increases the value by 1). However I can't access through ajax.html. Where is my mistake? Thank you.