lingo5 Posted May 28, 2012 Share Posted May 28, 2012 Hi, please can anyone tell me why this URL parameter is not passing? <?php $refurl = "http://www.mysite.com/detail.php?id_property=$row_myrecordset_RS['id_property]"; ?> I get this error "Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/home/mysite.com/web/test/test/recform.php on line 91" line 1 is $refurl = "http://www.mysite.com/detail.php?id_property=$row_myrecordset_RS['id_property]"; Thanks in advance Link to comment https://forums.phpfreaks.com/topic/263284-please-help-with-syntaxagain/ Share on other sites More sharing options...
mrMarcus Posted May 28, 2012 Share Posted May 28, 2012 You're missing a closing single-quote: $row_myrecordset_RS['id_property] should be: $row_myrecordset_RS['id_property'] Link to comment https://forums.phpfreaks.com/topic/263284-please-help-with-syntaxagain/#findComment-1349318 Share on other sites More sharing options...
lingo5 Posted May 28, 2012 Author Share Posted May 28, 2012 Hi again mrMarcus, no the single quote isn't missing sorry...I miss typed it. any other suggestion? Link to comment https://forums.phpfreaks.com/topic/263284-please-help-with-syntaxagain/#findComment-1349325 Share on other sites More sharing options...
wigwambam Posted May 28, 2012 Share Posted May 28, 2012 <?php $refurl = "http://www.mysite.com/detail.php?id_property=" . $row_myrecordset_RS['id_property']; ?> Link to comment https://forums.phpfreaks.com/topic/263284-please-help-with-syntaxagain/#findComment-1349340 Share on other sites More sharing options...
lingo5 Posted May 29, 2012 Author Share Posted May 29, 2012 Thanks!!!! it works perfect. Link to comment https://forums.phpfreaks.com/topic/263284-please-help-with-syntaxagain/#findComment-1349436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.