My first php project - URL redirection site
I have been learning PHP for a month and I have created an URL redirection script using which anyone can create a shorturl for a long url (similar to tinyurl). Once they create a tiny url it will be saved into database, and a password will be given to the user for future editing.
I want to post my entire code here so that I can get your feedbacks and also I can know what could have been done better. I haven't given much importance to security since I have created this script just to teach basic php to myself...
This contains two major files index.php and edit.php. First one is for the users to create a short url and the second one is to edit a short url that was already created...
Apart from that there is a directory called 'conf' which has three simple include files, 1)for database connection variable, 2)for database connection code 3)for a simple function to generate random password...
It also has a css file and apart from that I have a sql dump file to automatically create the simple table for short urls and thier passwords.. I will post those codes one by one in separate posts here.. Pls give your feedback