Jump to content
MakeWebGames

Recommended Posts

Posted

This is a simple mod, just to log errors.

SQL's

[mysql]CREATE TABLE IF NOT EXISTS `error_logs` (

`ID` INT(11) NOT NULL auto_increment,

`Time` INT(11) NOT NULL,

`Error` VARCHAR(225) NOT NULL,

`Query` TEXT NOT NULL,

PRIMARY KEY(`ID`)

) auto_increment=1;[/mysql]

Then open your databse class diver

find

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

after the bracket add this:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Then after that whole function (or before the

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

)

add this:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Open Staff_logs.php beofre

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

add this:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Its a simple table, no pagnation, because i simple cbb :P

open smenu, find staff logs link, add this before/after:

(still in the same print statment)

> Error Logs

Posted

LOL

self::$query?

Guess you was trying to copy me on the last topic of me doing self::$link/self::$connection lol?

I think you need to read up what it does and how it works ;) - That's why i was referring to the database class..

Posted

lol @ This post has been edited 1 times, last edit by "Danny696" (Today, 3:50pm) :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...