Why is a static designation requierd to make this interpret correctly? See comment in code below.
<?php
require_once 'class.database.php';
class table extends database
{
static protected $_args=array(); // static added here to remove error
function __construct()
{
parent::__construct();
self::protect();
}
function protect()
{
foreach($_POST as $key => $value)
{
self::$_args[$key] = mysql_real_escape_string($value);
$i++;
}
}
. . .