View Single Post
  #13  
Old 01-23-2011, 10:59 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 586,447
Hall of Famer is on a distinguished road
Default

Well it appears that the function getcash() is missing? Add the lines below somewhere in your function.php file:

PHP Code:
function getcash($loggedinname){

include(
"config.php");

//First we see if we are logged in or not

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

$query "SELECT * FROM ".$prefix."users WHERE username = '$loggedinname'";
$result = @mysql_query($query);
$num = @mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$mycash=@mysql_result($result,$i,"dollar");

$i++;
}

return 
$mycash;


__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote