Breaking PHP

I haven’t programmed in php (or anything for that matter) for 3 years. So when I tried to get some of my old code working recently its been very frustrating. I had to rebuild it all from scratch.

All my data entry forms validate themselves with if statements that decide whether the form is asking for or receving data.  It turns out that you can’t write if(submit) anymore you have to write if($_POST["submit"]).

Plus the use of “” and ‘ ‘ in SQL statements has changed. I haven’t managed to workout exactly how – I just did it by trial and error (bashing my head against a wall method).  No wonder WordPress keeps breaking.

Any way I needed to get my programming head on again. Its good to succeed in a task, even though it took a day instead of an hour.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.