Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Modding Suggestion: Error Messages (http://www.mysidiaadoptables.com/forum/showthread.php?t=1886)

HIddenPanda 02-05-2011 09:02 PM

Modding Suggestion: Error Messages
 
functions.php
PHP Code:


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

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

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



USAGE:
PHP Code:


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.


All times are GMT -5. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.