I know that this is only possible with AJAX, but i\'ve never worked with AJAX... On my website you can keep a list of the cards that you have from the game Magic, this is quite
During an insert add column with timestamp . And get data ascending order of timestamp. Display the card.it will not change.
have you thought about using JS to do this?
Note: This requires the JQuery plugin, there are many CDN you can get it from though, with google being one of the most reliable Here
$(document).ready(function(){
var storePosition = { /// initializing the storeposition
topCoordinate : null
}
storePosition.topCoordinate = $(this).offset().top; /// storing the position
if(storePosition.topCoordinate !== 0){ // if we are at the top no point doing anything
$("html, body").animate({"scrollTop": storePosition.topCoordinate}, 500);
}
});
courtesy of This question
Also just a note... PLEASE stop using non parameterized queries. consider using MySQLi as its not much of a step up from MySql syntax and will give you some good practice with object orientated programming.