I am trying to pass a url parameter, the url looks like this:
I have tried using
$detailsquery = "SELECT * FROM marinas WHERE marina=$_GET['marina']";
to get the details but this came up with the error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in udetails.php on line 9
Should I be using something else in my sql?
I have tried using
$detailsquery = "SELECT * FROM marinas WHERE marina=$_GET['marina']";
to get the details but this came up with the error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in udetails.php on line 9
Should I be using something else in my sql?