Okay, this is pretty simple (i think). I made this loop --
while ( $finalkey > $mainkey )
{
//we make an array, called $row, from our SQL DB where our key matches $mainkey
$str = "SELECT * FROM `prop_data` WHERE `key`='$mainkey' AND `deleted`='0' LIMIT 9";
$query = $db->query($str);
$row = $db->arr($query);
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay)
{$hold1 = implode(",", $row);}
//--- key 1
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '1' )
{$hold2 = implode(",", $row);}
//--- key 2
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '2' )
{$hold3 = implode(",", $row);}
//--- key 3
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '3' )
{$hold4 = implode(",", $row);}
//--- key 4
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '4' )
{$hold5 = implode(",", $row);}
//--- key 5
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '5' )
{$hold6 = implode(",", $row);}
//--- key 6
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '6' )
{$hold7 = implode(",", $row);}
//--- key 7
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '7' )
{$hold8 = implode(",", $row);}
//--- key 8
if ( !$mainkey )
{}
elseif ( $mainkey == $mainkeystay + '48' )
{$hold9 = implode(",", $row);}
else
{
break;
}
//--- key 9
$mainkey++;
}
Now, problem is, when i recall keys that are NOT in the DB, it somehow reads implode, and gives me
Warning: implode(): Bad arguments. in /<censored>/index2.php on line 67
-_- so... help? :p
edit: if all the $row's are there, then it works fine, the rest of my coding and the rest of the program is just well and dandy heh.