PHP Starter Kit
A friend is just getting started with PHP. Like me, he’s not a coder by nature so I thought giving him the benefits of what I’d learned might help. I also thought it might help other people out there so I’m offering it here as a free download.
The PHP sites that I have built in the past – it’s been awhile – all were of the simple database read/write variety. So once I had cobbled together a simple set of db connection, add, edit, remove, list, view scripts I had a quick framework to start my projects. That’s what this set is. It has all the basic scripts you need to make a simple site with fairly verbose comments indicating what the various parts do. I left the SQL queries in there, but you’ll have to make your own based upon your application. Maybe in the future I’ll add a MySql script and instructions for setting this up as a working app – that might make a more valid example. Still if you’re reasonably experience in some other scripting language, this should be enough for you to figure out what it’s doing and how to make it do what you want. I’m primarily a designer, so “coding” for me often consists of finding basic scripts, putting them together, and hacking together an application. If you work that way, this is the file for you.
Happy coding!
Download my PHP Starter Kit.
January 11th, 2008 at 10:37 pm
You are a good friend.
May 7th, 2008 at 5:33 pm
Hello,
Thanks for your help!Is it possible to have a small description regarding the database because I have added MYSQL (defined database in the PHPMYADMin)but it won’t work properly.
Thanks,
Venus
May 7th, 2008 at 7:46 pm
Well, as I said in the post, I didn’t do a very good job of documenting the DB side. But here are some bits that might help:
First, you’ll need to change the database info to match yours in the file at includes/connect.php. This is the generic script that gets called by every page that queries the DB. But requiring it as an include we only have to write it once.
Next, you’ll need to create a table in your DB that matches the queries. I replaced the ZIP file above with a new version that has an SQL script for creating a DB. Even if you don’t know how to do that, it’s pretty easy to read the field names and types.
I’ve also updated the PHP files so now it should operate if you setup the DB correctly.
Just download the new version of the starter kit ZIP file above.
Good Luck.
July 18th, 2008 at 12:15 am
found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later ..
January 5th, 2009 at 11:49 pm
Complimenti per l\idea della descrizione dell\appendicectomia. Davvero simpatico il sito!
Bravo!
arrolladora banda el la limon
chat iscrizione
amp69 com
yahoo fantasy baseball
February 28th, 2009 at 4:43 am
I must say that you provide genuine, quality information. Thanks for this!
BTW, dpn’t you think your blog needs a better wordpress template?
August 30th, 2009 at 3:12 pm
I never ever post but this time I will,Thanks alot for the great blog.
May 30th, 2010 at 1:14 am
Hi, well done site. Want to get money for blogging? Check out: http://bit.ly/PaidWriting
June 17th, 2010 at 6:44 am
excellant writing, you deserve a free iPad: http://bit.ly/freeipad6