[PHP & SQL] My very first programming thats actually useful - Printable Version +- Forums - Open Redstone Engineers (https://forum.openredstone.org) +-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html) +--- Forum: Programming (https://forum.openredstone.org/forum-8.html) +--- Thread: [PHP & SQL] My very first programming thats actually useful (/thread-1538.html) |
[PHP & SQL] My very first programming thats actually useful - EDevil - 12-09-2013 I would REALLY like some feedback of you guys to see if i did things well and if it looks... well, solid. This has been my first actual program that can do some stuff useful (on school we had to do $number1 = 4, $number2 = 8, echo $number1 + $numerb; <--- >.> ) So, this was an program for a client of us, wanting to make himself a lottery. Clients will get a link by the owner to my script, on which you need to enter your mail. Once you've done that, your mail address with a uniquely generated Number (lottery ) will be stored in a SQL database. The script will search for another Random number if the number already exists, and will also stop if the mail address is already stored in the database. *Future stuff*Users will get an mail once they've singed up with their random generated number. That really isn't too hard. Script time! Code: <?php RE: [PHP & SQL] My very first programming thats actually useful - Somepotato - 12-10-2013 You should look into using ajax and preventing multiple entries from a single IP RE: [PHP & SQL] My very first programming thats actually useful - Malcolmforde - 12-10-2013 Watch all of Toms hacking videos on Computerphile. He goes over common security errors that should be fixed immediately such as cross-site scripting. It shall make it more secure! RE: [PHP & SQL] My very first programming thats actually useful - EDevil - 12-10-2013 (12-10-2013, 02:54 AM)Somepotato Wrote: You should look into using ajax and preventing multiple entries from a single IP Thank you for the tip, but i'll think i'll stay with php for now, since im finally getting the hang of it. (12-10-2013, 06:46 AM)Malcolmforde Wrote: Watch all of Toms hacking videos on Computerphile. He goes over common security errors that should be fixed immediately such as cross-site scripting. I'll take a look at it! Thank you very much for the provided link! RE: [PHP & SQL] My very first programming thats actually useful - Somepotato - 12-10-2013 Using ajax doesn't imply you have to use another language RE: [PHP & SQL] My very first programming thats actually useful - Malcolmforde - 12-11-2013 (12-10-2013, 09:26 AM)EvilDevil59NL Wrote:(12-10-2013, 02:54 AM)Somepotato Wrote: You should look into using ajax and preventing multiple entries from a single IP *provides link to cross-site scripting* http://www.youtube.com/watch?v=L5l9lSnNMxg The guy in that video is Tom. Watch all the videos he is featured in. |