if(gettype($special)=='array') {
$offer = $special;
}
if(gettype($offer[0])=='object') {
$special = $offer[0];
}
else
$special = $offer;
26 mar 2009
if(gettype($special)=='array') {
$offer = $special;
}
if(gettype($offer[0])=='object') {
$special = $offer[0];
}
else
$special = $offer;
class DB {
private
$host, $base, $user, $pass, $dbconn;
public function __construct DB($host, $base, $user, $pass) {
$this->host = $host;
$this->base = $base;
$this->user = $user;
$this->pass = $pass;
$this->dbconn = mysql_connect($this->host, $this->user,$this->pass);
mysql_select_db($this->base);
}
}
$dbconn = new DB($host, $base, $user, $pass);
$result = mysql_query("SELECT * FROM content");