Hi all,
I’ve been a site for years running on my synology server. After an update it does not support php 5.x anymore. Now my website is broken and I have a look at it for days but can’t find the solution. I’m not a developer, it’s just for fun…
Can any one help me out?
I’m getting this error message at my website:
“Parse error: syntax error, unexpected token “elseif”, expecting end of file in /volume1/web/linkcontainer.php on line 22”
The specific code is (partial):
if ($username=="www") {
$userid=1;
} else {
$sql = mysqli_query($connection, "SELECT id, gebrnaam FROM users WHERE gebrnaam = '$username'");
while ($res = mysqli_fetch_assoc($sql)) {
trigger_error (mysqli_error ());
}
} elseif (mysqli_num_rows($res)=="") {
header("location:aanmeld.php");
exit;
} else {
while ($row = mysqli_fetch_assoc ($res)) {
$userid = $row['id'];
$username = $row['gebrnaam'];
}
}
Many thanks in advance!
WKR
Marc