LostAngel Posted December 3, 2008 Share Posted December 3, 2008 Hey all, i'm getting the following error on the following line of code: error: Parse error, unexpected T_STRING, expecting ',' or ';' Code: <td><a href="confirmDelete.phprecordID=<?php echo $row_ recordsetName ['ID'];">Delete</a></td> Whats causing it? Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/ Share on other sites More sharing options...
awpti Posted December 3, 2008 Share Posted December 3, 2008 If that paste is correct, your spacing is all sorts of screwed up. And that doublequote is in the wrong place. Where's your closing PHP tag? Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/#findComment-704489 Share on other sites More sharing options...
.josh Posted December 3, 2008 Share Posted December 3, 2008 His spacing is fine. the quotes are around his href link. He just forgot to close his php tag. edit: erm..okay his spacing is not fine. Take out the space after the _ Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/#findComment-704490 Share on other sites More sharing options...
LostAngel Posted December 3, 2008 Author Share Posted December 3, 2008 Where should it be closed? Sorry, this is the correct line of code: <td><a href="confirmDelete.php?recordID=<?php echo $row_ rsRecords [' ID '];">Delete</a></td> Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/#findComment-704491 Share on other sites More sharing options...
.josh Posted December 3, 2008 Share Posted December 3, 2008 <td><a href="confirmDelete.php?recordID=<?php echo $row_rsRecords['ID']; ?>">Delete</a></td> Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/#findComment-704493 Share on other sites More sharing options...
darkfreaks Posted December 3, 2008 Share Posted December 3, 2008 <td><a href="confirmDelete.phprecordID=<?php echo $row_recordsetName['ID'];?>">Delete</a></td> Link to comment https://forums.phpfreaks.com/topic/135258-parse-error-unexpected-t_string-expecting-or/#findComment-704494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.