I get the following error message processing this page, but I can't see where's the mistake:
Parse error: parse error in /chs/p1/costa4seasons.com/home/html/renamesession.php on line 19
<?php
session_start();
$oldsession=session_id();
$link = mysql_connect('', '', '');
mysql_select_db("",$link);
$result = mysql_query("SELECT Inmo FROM Sesiones WHERE (Sesion='$oldsession')", $link);
while($row = mysql_fetch_array($result)) {
$Inmo=$row["Inmo"];
$rs = mysql_query($result,$link);
if (mysql_num_rows($rs)!=0){
}
session_regenerate_id();
$session=session_id();
$Fecha = date("Y-d-m h:i:s");
$sql = "INSERT INTO Sesiones ( Fecha, Inmo, Sesion)" .
"VALUES ('$Fecha', '$Inmo', '$session')";
$result2 = mysql_query($sql) or die(mysql_error().'<p>'.$sql.'</p>');
header ("Location: panelcontrol.html");
}else { ///ERROR SUPOSED TO BE HERE!!!
header("Location: acceso6.html?errorusuario=si");
}
mysql_close($link);
?>