Styles2304 Posted August 27, 2007 Share Posted August 27, 2007 Error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/styles/public_html/wcontrol/extracontent.php on line 21 Code: <?php //Connects to database using info in pass.php and designates variables include "conn.inc.php"; include "auth.inc.php"; if ($_SESSION['user_permission'] != 10) { echo '<center>'; echo 'Sorry, you do not have permission to view this page.'; } else { $IndexNo = $_GET['IndexNo']; $query = "SELECT * FROM ExtraContent WHERE (IndexNo = '$IndexNo'); $result = mysql_query($query,$link) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $_SESSION['IndexNo'] = $row['IndexNo']; $_SESSION['Title'] = $row['Title']; $Data = $row['Data']; } ?> <html> <head> <title>New Covenant Fellowship</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> </head> <body bgcolor="#E5EFF4" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center> <font size="5pt"> Ministries </font> <br> <hr width="100%"> <form method="post" action="extracontent_save.php"> <table width="95%" height="95%" border="0"> <tr> <td align="left" valign="top" width="100%" height="100%"> <?php echo '<textarea rows="10" cols="50" name="Data" wrap="soft" >' . $Data . '</textarea>' ?> </td> </tr> </table> <input type="submit" name="submit" value="Save"> </form> </center> </body> </html> <?php } ?> Line 21 is: $_SESSION['IndexNo'] = $row['IndexNo']; Anyone see it? Quote Link to comment https://forums.phpfreaks.com/topic/66900-solved-parse-error/ Share on other sites More sharing options...
Styles2304 Posted August 27, 2007 Author Share Posted August 27, 2007 Oy nevermind. I'm working without a color coded text editor at the moment . . . when I posted I noticed the missing quotes. Sorry for the wasted space. Quote Link to comment https://forums.phpfreaks.com/topic/66900-solved-parse-error/#findComment-335356 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.