// Make a MySQL and database connection mysql_connect("localhost","user","pass") or die(mysql_error()); mysql_select_db("database") or die(mysql_error()); $aprid = $_GET['appid']; mysql_query("UPDATE articles SET hits = hits + 1 WHERE id='$aprid'"); header("Location: http://localhost/digg/index.php");
Now, that I have multiple pages, that go to this blah.php page. . .i would like it to redirect them to the page they came from(with a refresh to show the changes).
I tried doing with this java. . .and using a 'history.back' type command. . .but when just going 'back', it doesnt refresh the page to show the changes. And I don't want to add a java to the current page, to make it refresh every time.
Thanks in advanced.