You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phpgroup2...@googlegroups.com
How to use protected variable in child class?? :: <?php
class Database { protected $_mysql; public $query ='hello';
?>
<?php class User extends Database { private $user_id;
public static function userAuthenticate($id, $password){ print_r($this->query);
} ?> as result i get following error: Fatal error: Using $this when not in object context in C:\xampp\htdocs\projects\design_her\classes\user.Class.inc on line 6.