simbu Posted November 28, 2012 Share Posted November 28, 2012 Hello, I am getting this error. Here is my down.php codings Parse error: syntax error, unexpected $end in C:\wamp\www\ ...down.php on line 18 <?php mysql_connect("localhost","root",""); mysql_select_db("sample"); if(isset($_GET['id'])) { $id = $_GET['id']; $query = mysql_query("SELECT file FROM testing WHERE id='$id' "); $row = mysql_fetch_array($query); ?><a href='resumes/'<?= $row['file'] ?>>Download</a> <? } ?> Link to comment https://forums.phpfreaks.com/topic/271283-getting-error-parse-error-syntax-error-unexpected-end-in-cwampwww/ Share on other sites More sharing options...
requinix Posted November 28, 2012 Share Posted November 28, 2012 You don't have short_tags enabled. Use <?php for all your opening tags. Link to comment https://forums.phpfreaks.com/topic/271283-getting-error-parse-error-syntax-error-unexpected-end-in-cwampwww/#findComment-1395808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.