Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating A Simple PHP/MySQL Forum
#9
(05-16-2010, 02:33 AM)BHensley Wrote: I can respect your decision to keep this tutorial short but ignoring basic security protocols is not the way to teach people. You never, under any circumstances, insert raw form-fed data into a database. Instead you should be sanitizing all form data before it makes it to the database.

There are a wide variety of options when it comes to sanitizing data. And it'll often times depend on the application at hand; that is, whether you just settle for escaping quotes or go with a more sturdy character white list.

For the sake of simplicity look into the mysql_real_escape_string function. It's the most basic way to prevent SQL injections and limit XSS vulnerability. And like I said: it's simple. Simple enough to be used in this tutorial.

Another amazing answer to another pointless tutorial.
Reply


Messages In This Thread
Creating A Simple PHP/MySQL Forum - by ndee - 05-15-2010, 03:34 PM
RE: Creating A Simple PHP/MySQL Forum - by invisible - 05-22-2010, 04:39 PM
RE: Creating A Simple PHP/MySQL Forum - by Huawei - 05-16-2010, 02:38 AM
RE: Creating A Simple PHP/MySQL Forum - by ndee - 05-16-2010, 09:46 AM
RE: Creating A Simple PHP/MySQL Forum - by James - 05-17-2010, 08:52 AM
RE: Creating A Simple PHP/MySQL Forum - by N'aix - 07-14-2010, 04:22 AM
RE: Creating A Simple PHP/MySQL Forum - by Zubb - 07-18-2010, 12:36 PM
RE: Creating A Simple PHP/MySQL Forum - by Clonex - 07-24-2010, 09:59 AM
RE: Creating A Simple PHP/MySQL Forum - by Orgy - 10-21-2010, 04:17 PM
RE: Creating A Simple PHP/MySQL Forum - by Orgy - 10-26-2010, 06:45 AM
RE: Creating A Simple PHP/MySQL Forum - by Arеs - 11-01-2010, 09:00 AM
RE: Creating A Simple PHP/MySQL Forum - by HeY? - 11-05-2010, 02:14 AM
RE: Creating A Simple PHP/MySQL Forum - by Kate - 11-19-2010, 09:46 AM
RE: Creating A Simple PHP/MySQL Forum - by Chimi - 12-06-2010, 01:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 936 07-27-2020, 11:26 PM
Last Post: tk-hassan
  Creating Dynamic images with PHP Gaijin 15 8,198 01-21-2012, 06:17 PM
Last Post: Dube
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,660 10-10-2011, 01:00 PM
Last Post: Greyersting
  optimize mysql through a php script andrewjs18 7 3,334 10-05-2011, 06:31 PM
Last Post: John.
  [PHP] SIMPLE NEWS SYSTEM Leprechaun Coder 4 2,759 05-15-2011, 04:46 PM
Last Post: Tunasty™

Forum Jump:


Users browsing this thread: 2 Guest(s)