Junaid R Posted December 30, 2014 Share Posted December 30, 2014 echo '<a href="game.php?id=$row->gameTitle" style="display:block; text-decoration:none;">'; Link to comment Share on other sites More sharing options...
davej Posted December 30, 2014 Share Posted December 30, 2014 Perhaps try... echo '<a href="game.php?id='.$row->gameTitle.'" style="display:block; text-decoration:none;">'.$row->gameTitle.'</a>'; Link to comment Share on other sites More sharing options...
Ingolme Posted December 30, 2014 Share Posted December 30, 2014 Strings wrapped in single quotes do not evaluate variables, they print out the literal $ and whatever follows it. If you want to use variables in your strings they have to be delimited by double-quotes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now