Page 1 of 1
database using Mysql and PHP- which one first.
Posted: Mon Oct 06, 2014 12:15 pm
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
Re: database using Mysql and PHP- which one first.
Posted: Mon Oct 06, 2014 12:31 pm
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.