1
edit
mNo edit summary |
m (→Don't) |
||
Line 39: | Line 39: | ||
* Use variable or function names that are ambiguous (like $var or validate()). | * Use variable or function names that are ambiguous (like $var or validate()). | ||
* Create unnecessary functions. | * Create unnecessary functions. | ||
* Use | * Use <? ?> to designate a PHP block. | ||
* Use $array[foo] or $array["foo"] unless it is appropriate (constant or a variable catted with a string). | * Use $array[foo] or $array["foo"] unless it is appropriate (constant or a variable catted with a string). | ||
* Loop MySQL queries. | * Loop MySQL queries. | ||
Line 46: | Line 46: | ||
* Build URLs including Session ID (''SID should be "automagically" added by PHP if we're using a no-cookie configuration''). | * Build URLs including Session ID (''SID should be "automagically" added by PHP if we're using a no-cookie configuration''). | ||
* Use inline styles. Ever. | * Use inline styles. Ever. | ||
* Use | * Use <table> for design | ||
* Duplicate DOM IDs. | * Duplicate DOM IDs. | ||
* Use $_GET and $_POST with extra checks if the input could come from either GET or POST | * Use $_GET and $_POST with extra checks if the input could come from either GET or POST |
edit