PDA

View Full Version : Modding Suggestion: Error Messages


HIddenPanda
02-05-2011, 09:02 PM
functions.php


function error($message, $title = "Error!") {

$display = "Error: " . $message . "<br><br>" . @mysql_error();

templatedefine($title, $message);
exit();

}



USAGE:


if (blah blah standards not met) {

error("Simple one-line error message");

}



See what I'm getting at HoF/Dev Staff?

Tony
02-05-2011, 09:36 PM
Very cool (;

Kaeliah
02-05-2011, 09:46 PM
I don't see the point of this... it seems like a bunch of extra code to just say 'error' when you could do that with the $article_title and $article_content variables.