/ Published in: PHP
Expand |
Embed | Plain Text
# Short version if clause $message = ($age < 16) ? 'Welcome!' : 'You are too old!'; # Turn error reporting on / off # Rule Number One: Never, Ever, Trust Your Users # If you are using SQL, prevent sql injection, always use # Alternatively use addslashes before sending stuff to the database # Remove spaces in front and at the end # good idea? You should always prefix variables with its type e.g. intNoOfApples or arrArrayOfNumbers
Comments
Subscribe to comments
You need to login to post a comment.

Seems a little pointless, because this topic is mentioned on many many websites. First off, sanitizing user input is a plus, and object oriented programming and etc...