database using Mysql and PHP- which one first.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
sorefingers
Forum Newbie
Posts: 1
Joined: Mon Oct 06, 2014 12:05 pm

database using Mysql and PHP- which one first.

Post by sorefingers »

I am a new user of PHP and MySQL. My first project is a Mysql database and PHP. Which one do I write the code for first. Should I write the scripts for the database and get in working correctly or design the website with PHP first?

Thanks
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: database using Mysql and PHP- which one first.

Post by Celauran »

If your site is going to be DB-driven, I'd make sure you've got your schema worked out before starting to code anything. Figure out which tables you'll need, which relationships, etc as these will typically be the basis for your models anyhow. DB schema and wire framing are usually my first steps.
Post Reply