注意:试图在第50行的/opt/lampp/htdocs/citifix/final/notes.php中获取非对象的属性“ job_name”

时间:2019-07-08 06:12:05

标签: php

注意:尝试在第50行的/opt/lampp/htdocs/citifix/final/notes.php中获取非对象的属性“ job_name”

<?php 

    class Notification extends Db_object{
       protected static $db_table ="postADs";
       protected static $db_table_fields =array('id','job_name','job_type','job_location','job_contact','job_description','job_date');
       public $id;
       public $job_name;
       public $job_type;
       public $job_location;
       public $job_date;
       public $job_contact;
       public $job_description;

       public static function find_by_lastid(){

         global $connect;
         $last = $connect->the_insert_id();
         $the_result_array = static::find_by_query("SELECT *       FROM ".static::$db_table." WHERE id = '$last' LIMIT 1");
         return !empty($the_result_array) ? array_shift($the_result_array) : false;
       }

    }


?>

0 个答案:

没有答案