Hello Everyone,
I have a php class like this:
class DatabaseObject {
protected static $table_name;
}
Then, when I extended this class, I do this:
class User extends DatabaseObject
{
protected static $table_name = "users";
}
However, I am encountering errors "mysql_fetch_array(): supplied argument is not a valid MySQL" because the $table_name variable has no value.
Can you please give some advise regarding this concern on how to set and get the static variable?
Thanks in advance.