2

Please post a list of ideas for tutorials that can be written for the php section. Please bear in mind the tutorials are to be kept relatively small so don't ask for something that may take pages upon pages of text to explain. Thanks.

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by diafol
0

OK, here are some of the problems I see most often:

login/registration
post handling for multiple checkboxes with same 'name' attribute
how to use header redirect!
emailing (with an attachment)
working with dates (subtracting and adding days etc) to get new dates
use of regex in preg_* functions - users often don't realise that these are the functions that they require

Edited by diafol: n/a

0

One that comes up a lot, is two dropdowns with linked info (although it involves javascript). I was planning on writing one, but still haven't. I do have a working example though. If you want it I can zip it (uses PHP, MySQL and jQuery).

One thing popping up in the forum lately, is how to handle notices for undefined indexes and variables (using the isset construct). A sticky for that to refer to would be nice as well.

1

I've just submitted a redirect tutorial and am waiting for staff writers to approve. Soon I'll have dinner and start on the next tutorial.

Votes + Comments
Go cwarn23 !
0

Just remembered another one:

when using a loop, many users do a query on every iteration, whereas they could just build up a values or where clause and send just the one query at the end of the loop. I've answered a few of these lately.

//edit

perhaps something on general security, e.g.
preventing sql injection,
XSS,
sessions,
location of include/config files etc

Edited by diafol: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.