11-21-2013, 12:28 AM
Hello,
I'm new to OpenDocMan /PHP and tried to install it for the first time.
My webserver configuration:
I'm new to OpenDocMan /PHP and tried to install it for the first time.
My webserver configuration:
- Apache-versie 2.2.16
PHP-versie 5.2.14
MySQL-versie 5.0.96-community[/list:u]
I filled out the questions concerning my database, location of the files and got to a screen where i had to choose "upgrade from ..." or "new installation". After that I had to go to the directory where ODM was to be found and there I got a first parse error...
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/******/public_html/opendocman/User_class.php on line 413 (**** is my webspace location)
This is, I think, the code:
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;
}
The database was created and there was 1 record in the table "user"...
Can anyone help me? Thanx