am Brazilian
I am with a doubt in OOP:
<?
class artigos {
var $conexao;
var $skin;
function conectar() {
global $conexao,$banco, $host, $user, $pass, $db;
$this->$conexao = mysql_connect($host,$user,$pass);
mysql_select_db($db);
}
function skin() {
$this->conectar();
$sel = mysql_query(\"SELECT * FROM skin\");
$dados=mysql_fetch_array($sel);
$skin=$dados[\"default/skin.tpl\"];
$this->skin = include(\"$skin\");
}
function show() {
$this->skin();
}
?>
But the second function show () is not it including the object skin, as I correct that?