• Log in or sign up for an account here: https://www.sythe.org/login

how to get this to show up...

Joined
Jul 25, 2007
Sythe Gold
0
Messages
150
Its kind of hard to explain. for example:
say if my website had the same layout for every page, and i had a box on the left hand side with like a poll in it. is there a way i could change the poll when ever i wanted without editing every single page on my site? cheers
 
Or use:

PHP:
<?php require('mypoll.php'); ?>

Which causes an error to occur and stops the page from loading if a poll doesn't exist.
It's usually a good thing to stop a page from loading if it's missing components.
 
Or use:

PHP:
<?php require('mypoll.php'); ?>

Which causes an error to occur and stops the page from loading if a poll doesn't exist.
It's usually a good thing to stop a page from loading if it's missing components.

it stops the page from processing if the file is not found. im pretty sure you could do

PHP:
function(params) OR die('OH NOES MAI FUNCTN DIDNT WORK');
 
Or just load the poll question and answers from a text file. Easiest updating from your point of view with only a minor hit on performance.
 
duelarena.gg
Back
Top