![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
Anyone know what to replace the query with to work with the new functions? I've tried things but nothing works.
PHP Code:
|
#2
|
||||
|
||||
![]()
Change this line:
PHP Code:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
![]()
Did that, now I'm getting:
Code:
Fatal error: Call to undefined function getcurrentimage() in /home/taleofdr/public_html/lineage.php on line 21 Code:
$familyinsert[0][0] = "<a href='levelup.php?id={$familymember[0][0]}'><img src='".getcurrentimage($familymember[0][0])."'/></a><br>"; |
#4
|
||||
|
||||
![]()
Well that error has nothing to do with the function getfamilymember() script itself, and its simple enough to fix. I trust you will have no problem figuring it out on your own, give a try and lemme know only if you still cant find out cause of this error at the end of the day.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
![]()
I've been fiddling with it for three days now :( Usually I can figure these things out but not this one.
It's clearly the new functions thing. It works fine on my SA site. Last edited by SilverDragonTears; 04-04-2012 at 01:37 PM. |
#6
|
||||
|
||||
![]()
Well just add the below codes to the beginning of your script file:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
![]()
Well I managed to get the page to show without errors... I didn't know how to properly change this:
Code:
$adoptexist = mysql_num_rows($result); Edit: Lol... my wisdom tooth hurts and is making my brain stupid.. I fixed it :p Last edited by SilverDragonTears; 04-04-2012 at 04:45 PM. |
#8
|
||||
|
||||
![]()
One more thing... the names aren't showing up?
Code:
function getfamilynames($familymember, $generation){ $familyname = array(array()); for($i=0; $i<=$generation; $i++){ for($j=0; $j<count($familymember[$i]); $j++){ $query = "SELECT * FROM {$GLOBALS['prefix']}owned_adoptables WHERE aid = '{$familymember[$i][$j]}'"; $stmt = $GLOBALS['adopts']->query($query); $adoptexist = $stmt->fetch(PDO::FETCH_ASSOC); if($adoptexist == 0) $familyname[$i][$j] = "<br>"; else $familyname[$i][$j] = $thisadopt['name']; } } return $familyname; } |
#9
|
||||
|
||||
![]()
Well, replace the line below:
PHP Code:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#10
|
||||
|
||||
![]()
That didn't work but I left out a part... here is the original
Code:
function getfamilynames($familymember, $generation){ $familyname = array(array()); for($i=0; $i<=$generation; $i++){ for($j=0; $j<count($familymember[$i]); $j++){ $result = mysql_query("SELECT * FROM {$GLOBALS['prefix']}owned_adoptables WHERE aid = '{$familymember[$i][$j]}'"); $thisadopt = mysql_fetch_array($result); $adoptexist = mysql_num_rows($result); if($adoptexist == 0) $familyname[$i][$j] = "<br>"; else $familyname[$i][$j] = $thisadopt['name']; } } return $familyname; } |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replace shoutbox with a different chat box | tahbikat | Questions and Supports | 0 | 12-01-2015 09:07 AM |
Does this script always not work? | PokeFerno | Questions and Supports | 5 | 05-10-2014 01:17 PM |
Oh My God. Something else does not work | PokeFerno | Questions and Supports | 1 | 05-10-2014 10:14 AM |
Links will not work | Eagle9615 | Questions and Supports | 4 | 07-03-2013 11:30 PM |
Replace Index Page | SilverDragonTears | Questions and Supports | 0 | 06-02-2011 09:24 PM |
What's New? |
What's Hot? |
What's Popular? |