12-12-2013, 12:57 AM
I've found the error on line 413 and fixed it by hardcoding the database table used in that line...
Next error in same php file...
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/ODM/User_class.php on line 428
424 /*
425 * getAllUsers - Returns an array of all the active users
426 * @returns array
427 */
428 public static function getAllUsers()
{
// query to get a list of available users
$query = "SELECT id, last_name, first_name FROM {$GLOBALS['CONFIG']['db_prefix']}user ORDER BY last_name";
$result = mysql_query($query, $GLOBALS['connection']) or die("Error in query: $query. " . mysql_error());
while($row = mysql_fetch_assoc($result)){
$userListArray[] = $row;
}
return $userListArray;
}
Next error in same php file...
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxx/public_html/ODM/User_class.php on line 428
424 /*
425 * getAllUsers - Returns an array of all the active users
426 * @returns array
427 */
428 public static function getAllUsers()
{
// query to get a list of available users
$query = "SELECT id, last_name, first_name FROM {$GLOBALS['CONFIG']['db_prefix']}user ORDER BY last_name";
$result = mysql_query($query, $GLOBALS['connection']) or die("Error in query: $query. " . mysql_error());
while($row = mysql_fetch_assoc($result)){
$userListArray[] = $row;
}
return $userListArray;
}