Hypothetical 2 on route

I put some code in a file!

Hopefully there will be more later, but for now, here is a list of some code conventions I’m hoping to uphold:

  • Names: blah_blah_blahblah. Functions, variables, files, the lot. Additionally functions should be prefixed h_
  • All include files go in /lib
  • Everything’s part of the session, all the pages. If the userid isn’t there then nothing will work. Oh well, I’m not going to support people who turn off cookies. On the WAP side, I’ll use the PHP SID where it’s needed.
  • Definitely gonna go with a page on each site of the transaction. I can’t work out this whole one page does all thing.
  • Having all the content in the database is an interesting idea. Have all the content bits as just another kind of portlet.
  • MySQL results have result_ prefix and fetch_array’s have arr_ to remind me to use fetch_array and not fetch_row. No fetch_row'ing in h2

Anyway, back to the work…