Modding Suggestion: Error Messages

Forum
Last Post
Threads / Messages

HIddenPanda

Premium Member
Premium Member
Joined
Jul 15, 2010
Messages
61
Points
8
Mysidian Dollar
3,655
functions.php
PHP:
function error($message, $title = "Error!") {

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

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

}

USAGE:
PHP:
if (blah blah standards not met) {

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

}

See what I'm getting at HoF/Dev Staff?
 
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.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,119
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top