Search code examples
phpphp-5.3

Challenge problems for new programmers


So I'm training someone at job in PHP, MySQL, HTML, etc and was wondering if anyone out there knew of any good entry-level challenges to have him complete in PHP. I've had him do a bunch already and I'm starting to run out of ideas. He has no previous programming experience.


Solution

  • Calculate Age - accounts for pre 1970 dates, leap years, if birthday has passed in current year, birthday is in future, format of date.

    Build on the classes he's created and extend them to do other things.

    Output the contents of a multi-dimensional array - recursion.

    Open a text file and extract data - memory management, max time execution.

    Get mismatched records from two tables. LEFT JOIN ... x IS NULL

    build a grid of data from a query - colspan when cells left over

    recurring Ajax requests. Check database to see if X has been saved/updated. (2 user tick tack toe or chat room)