Was soll hier falsch sein:
PHP
public function entry_count ($table, $where)
{
if (isset($where))
{
$this->sql = "SELECT * FROM ".$this->prefix.$table." WHERE ".$where;
}
else
{
$this->sql = "SELECT * FROM ".$this->prefix.$table;
}
$this->query = mysql_query($this->sql);
$test = mysql_num_rows($this->query);
return $test;
Alles anzeigen
Fehlermeldung: