Hello people,
When I call my function ReadMyTable::readAdmin(); i get an error where it says I have not the right to use self::admin within that function, please, help me to fix this problem !
here is my code :
<?php
class ReadMyTable{
public static $admin="admin";
public static $presentation="presentation";
public static function getAdmin(){
return self::$admin;
}
public static function getPresentation(){
return self::$presentation;
}
public static function readAdmin(){
$radmin="SELECT * FROM self::$admin";
$qadmin=mysql_query($radmin)or die(mysql_error());
$rowadmin=mysql_fetch_assoc($qadmin);
return $rowadmin;
}
}
?>