2012-01-03, 06:15 AM
Now I'm not sure if I'm using it right(it's late). Logic wise or correctly for that matter. (Or if it would work)
Right now, my PHP page requires to connect the DB to load. (Not for any content, just some random crap) could i use an else if statement, (like if it doesn't connect to the DB) to just display the static HTML content. Doing it won't be too hard, (Unless I have to include all of that in the statement, would I?)
PHP Newb, so simple terms :p
Right now, my PHP page requires to connect the DB to load. (Not for any content, just some random crap) could i use an else if statement, (like if it doesn't connect to the DB) to just display the static HTML content. Doing it won't be too hard, (Unless I have to include all of that in the statement, would I?)
PHP Newb, so simple terms :p