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


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());
        case 'Under Maintenance' :
                                    echo "<script type='text/javascript'>location.href='userReport_Reported.php';</script>";
        case 'In Use':
                        echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php;</script>"; 
        default: break;

include "../opendb.php";

the first case works, it redirects to the right page. but the second case gives that error.

Recommended Answers

All 2 Replies

i got it :)

you forgot the closing single quote

echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php;</script>";


echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php';</script>";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.