I thought if I could get the basics workin, I could customise the IF statement. I'm creating a flat file database version of my calendar script, iZeit
In MySQL mode, the categories for events are filtered out by grabbing the input from checkboxes, creating an SQL statement using 'AND category = 'cat1' or category = 'cat2''. This is then attached to the end of an sql statement and sent to the server to return the correct results.
With a flat file it becomes more difficult. I need to have something like
if(($category == 'cat1') || ($category == 'cat2'))
But I don't know which categories will be selected, hence the need for a dynamic IF statement. Once I can get '1==1' evaluating, I should be able to adapt it to my needs. I could post the source for the MySQL version if it would help.
Thanks for the help 🙂