Here is the code:
class Crud {
public static function get($id);
echo "select * from ".self::$table." where id=$id";// here is the problem
}
class Player extends Crud {
public static $table="user"
}
Player::get(1);
I could use Player::$table, but Crud will be inherited in many classes.
Any idea ?