Your image src's are not being correctly generated. For example:
../photographs/$result_array[$i][$blowup_indx]This is not right. For some reason, PHP is outputting the variable name ($result_array[$i][$blowup_indx]) and not the contents of that variable.
From the look of:
$objectIndex = "PHT";
$whereclause = " WHERE RegID=".$regid;
$otherclause = "";
$fields = "PhotoID, BlowUp, DisplayType, RegID";
//$result_array = _getRows($objectIndex, $fields, $whereclause, $otherclause);
$result_array="select ".$fields. "from" .$objectIndex."where" .$whereclause;
$blowup_indx = 1;
$regid_indx = 3;Your query is not being correctly put together. You are also just putting the query string itself into the variable $result_array. If you perform a MySQL query, you must first execute it with the
mysql_query function and then get the results from it, for example with
mysql_fetch_array.
Have you tried commenting the second $result_array:
$result_array="select ".$fields. "from" .$objectIndex."where" .$whereclause;And then uncommenting:
//$result_array = _getRows($objectIndex, $fields, $whereclause, $otherclause);It appears that the
_getRows function that you have should do what you are trying to achieve.