i have this error and i dont know why. please help...thanks!
Webpage error details
Message: Unterminated string constant
Line: 19
Char: 45
Code: 0
URI: http://localhost/itams/user/checkIfReported.php?a=5
the codes in checkIfReported.php is this
<?php
session_start();
include "../configdb.php";
include "../opendb.php";
$_SESSION['a'] = $_GET['a'];
$result = mysql_query("SELECT _status
FROM assets
WHERE _id='$_SESSION[a]'") or die('Could not Get Id: '.mysql_error());
$row=mysql_fetch_array($result);
$status=$row['_status'];
switch($status)
{
case 'Under Maintenance' :
echo "<script type='text/javascript'>location.href='userReport_Reported.php';</script>";
break;
case 'In Use':
echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php;</script>";
break;
default: break;
}
include "../opendb.php";
?>
the first case works, it redirects to the right page. but the second case gives that error.