Ok, I can't figure out why I keep getting this error:
Fatal error: Cannot redeclare search_rank() (previously declared in /h1/adamspro/videodat/vdatsearch.php:148) in /h1/adamspro/videodat/vdatsearch.php on line 148
From this code:
uasort($rows, 'search_rank');
// ranking function for use in uasort
function search_rank($a, $b) {
$ax = $a[score];
$bx = $b[score];
if($ax == $bx) {
return 0;
}
return ($ax > $bx) ? -1 : 1;
}
I know for a fact that search_rank is not defined anywhere else, and I have tried changing the name, and removing the "uasort" line. As long as the function code is present, the script gives me that error..
I have other functions in the same script that work just fine.. PLEASE HELP!
Thanks,
tgmsocal