Been doing this a while. I enjoy this a lot. ;-/
programming is supposed to be fun and it should be clear what the code does. That is my attitude to it.
I really try to control how the code behaves...
Current Issue I think is important (or 'Bee in Bonnet'?) ;-/
Programming is about 'trade-offs' : Dan North - Decisions, decisions
Those 'pesky' comma delimited strings in database columns? maybe interesting? joining on ';' separated values in a column.
On Answers: The following are my 'priorities'
- I try, really hard, to make it correct - but it must return the correct results according to my understanding of the problem.
- I try hard to make it good as well.
- It may be 'less than good' code but it _must return the correct results that we all agree about.
Useful Stuff?
If really desperate for error messages on a live site: maybe interesting? php-custom-error-handler-handling-parse-fatal-errors
Application Startup (index.php) - A PHP bootstrapping crash course
Common MySQL Queries Extending Chapter 9 of Get it Done with MySQL 5&6
- convert to MySQLi using PHP's MySQLi class. Really good introduction.
- questions/3128985/php-loginsystem-remember-me explains how to implement a secure 'auto login' system in PHP.
- Manage hierarchical data with MySQL stored procedures
On Debugging PHP scripts:
Also:
- i try and check the existing comments and answers to see if the answer i provide is 'different' and 'maybe useful'. Or just 'different'!
On 'comments':
- try to be 'useful' - i try. :-)
On Iterating arrays:
- I really like PHP 'array's as each comes with an 'iterator' built in! See 'current', 'key', 'next' and 'reset'. I don't care what the 'indexes' are unless they are 'names'. I use 'current($array)' to get the first entry rather than 'array[0]' as the first index may not be zero.
This is so me... (XKCD: - someone is wrong on the internet).
real email: rfv123 \dot questions \at gmail \dot com