Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class imageHandle {
- static $c,$m,$p;
- public function __construct()
- {
- self::$c = "categories";
- self::$m = "mirrors";
- self::$p = "pictures";
- }
- function addCategory($name) {
- $name = mysql_real_escape_string($name);
- echo 'INSERT into '.self::$c.' (name) values("'.$name.'")<br />';
- $sql = mysql_query('INSERT into '.self::$c.' (name) values("'.$name.'")');
- if($sql) return 1; else echo mysql_error();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment