Sample PHP, MySQL and JQuery codes