QUOTE (stabme @ Jun 4 2010, 08:21 PM)
dude, wth falaris what are you talking about. not a single person in this thread knows wth they're talking about re: html, php, templating, mysql, loops, tyvm.
pls, ffs, give me your code/project and i'll whip it to you in a much more optimized, faster, and easier way to you by this weekend. this is ridic.
how many mysql tables in nexus atlas, or rather the hunting, maps and experience tables? what do you say if i say i can auto generate all your content for you without having to make a new php page again.
Everyone else is doing things like a programmer would, having PHP generate everything, trying to optimize the code (because this site is clearly bringing down 500k visitors monthly and has to be optimized, right???) or doing things that are obviously beyond AllyGator's level. Moreover, if anything goes wrong in the future, she wouldn't know how to fix it, so then she'll be right back to this same situation.
I was trying to show how to keep it simple, eliminate the need for loops completely, and use html templates with PHP includes instead of generating everything via PHP. It is a bit more work, it is a "dumbed down" way of doing it, but everything is very obvious and the PHP is kept to a minimum. This way, anyone who knows basic HTML can probably fix the page.
I'm not saying your way or all the other programmers' ways are wrong, in fact from a programmer's and programming perspective they are the "correct" way to do things. That way just doesn't make much sense to do when you are then giving it to the operator of the site to use when they have no idea what you are doing.
For calling basic information from a database to fill in the page on a fansite, there is absolutely no good reason to make this complicated, even for the sake of optimization.