Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function SelectSpecific($obj, $data_base, $cond)
- {
- self::$query = "select $obj from " . self::$baseprefix . "$data_base where $cond";
- $out = self::Execute();
- $array = mysql_fetch_array($out); // THIS LINE IS WARNING LINE
- return $array[$obj];
- }
- private static function Execute()
- {
- $out = mysql_query(self::$query);
- return $out;
- }
- public static function SelectSpecific($obj, $data_base, $cond)
- {
- self::$query = "select $obj from " . self::$baseprefix . "$data_base where $cond";
- $out = self::Execute();
- if($out){
- $array = mysql_fetch_array($out); // THIS LINE IS WARNING LINE
- return $array[$obj];
- }else {
- return false;
- }
- }
- if (!$out) {
- $message = 'Invalid query: ' . mysql_error() . "n";
- $message .= 'Whole query: ' . $query;
- die($message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement