php - unexpected T_STRING on first line of code -
i have been getting error saying unexpected t_string on line 2 of script:
<? php session_start(); $incidentkey = $_session['incidentkey']; $incidentdetailsquery = mysql_query("select * incidents incidentkey='".$incidentkey."'"); while ($incidentdetails = mysql_fetch_assoc($incidentdetailsquery); ?>
and despite looking through forum heaps, have had no luck. coming error saying unexpected t_string on line 2 when code started this:
<? php $incidentkey = $_session['incidentkey']; etc.....
i've gone through other includes , couldn't find missing terminators leading script. can think why else getting error?
remove space in
<? php
to create
<?php
php
No comments:
Post a Comment