I have the following code:
PHP Code:
class database{
function config($part){
$sql = mysql_query("SELECT ".$part." FROM configuration");
if($sql){
echo 'ok';
}
else{
echo 'no sql';
}
}
}
This doens't work for some reason...
As soon as I remove the command mysql_query(); it says that $sql exists...
Does anyone has a solution for this problem?