After months of blood, sweat, googling, tears, and whining & ranting blog posts, I have succeeded in setting the World Wide Web on fire.
I finally found a few tutorials that weren’t completely worthless (but weren’t exactly something I’d link to and recommend … in fact, I could rant about one and its author in particular but I’m in too good of a mood), was able to make enough sense of them that I could combine them into something that worked and didn’t suck. By no means is this little project finished–there’s more experimentation, playing, and learning to do, but I made (a MySQL database, table, and) three files:
- An HTML form
- A PHP file in the same directory. It carries the data from HTMLformland to MySQLland in part by referring to …
- A Super-Secret PHP file that lives in a non-public directory.
Here’s my humble form for entering information about Presidents of the USA:
My first attempt resulted in this:
Easy fix. I’d just put the same value in for the database name and the table name. So …
But here’s what I don’t understand. The first attempt didn’t work and yet …
So what happened there?
Best news besides the whole thing working flawlessly is I can’t see any of the code in either of the PHP files.