josac;10968211 wrote:Well thank you all for the input. I think I'm personally going to with making the back end first. One noob question I have though is, when making a page in its enitriety, does all of the back end info like arrays and stuff go above a DOC type line, similar to this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The only things that absolutely have to go before your DOCTYPE declaration (or any other output) are calls like session_start() or setcookie(), and output buffering, if any of those is going to be used.
Good design, however, as practiced by most, is to do most, if not all, processing first, so, "yes" is probably the answer, with plenty of "quid pro quo" and "except in case of $foo".
If you grab the source code for some of the major free projects, like phpBB, phpMyAdmin, Joomla, WordPress, PhPNuke and so on, you'll see that they generally apply this rule, but there are some, perhaps several, exceptions.
Have you read any books on the subject, or are you just trying to get your feet wet with what you find on the 'Net? I'd recommend a little of both. And, possibly, doing a small project or two that aren't for public consumption, and using the Code Critique forum here or a similar forum elsewhere to seek experienced coders' opinions.
HTH,