1
Hi there, I wanted to use one PHP Costum Block with some querys to the database, but when i turn the block to "Visible", it bloks my website showning only one blank page. I have to go directly to the database and de-activate directly the block to have my website back on-line again. Do you know the reason this is happening to me? My XOOPS versions is the 2.4; My PHP version is the 5 Sample code i am Using: getVar('uid'); $current_balance = 0; $result = $db->query("select balance from history where uid = '$uid'"); if($db->getRowsNum($result) > 0) { $row = $db->fetchArray($result); $current_balance = $row["balance"]; } echo "Your current balance is $current_balance"; ?> Any Ideas??