I was trying to echo the quotation " in a string, but I realized it wasn't going to work the way I thought it would, does anybody know how to do this?
Thanks
Dark_Omen 5 Posting Pro
Recommended Answers
Jump to PostTry this
<?php echo '<a href="gallery.php?value='.$prevValue.'">Previous</a></br>'; echo '<a href="gallery.php?value='.$nextValue.'">Next</a>'; ?>
Jump to PostWhat kind of error does it give you?
stymiee, your code worked for me. I was able to see the quotation marks? Does it matter what version of php the person is using. Perhaps, that might be causing the problems?
Jump to PostYou almost always have to hit reload on pages you're working on.
If your programming environment uses color highlighting, it can sometimes give you a clue as to if you forgot to escape the quotation marks. Notice the posts above by Dark_Omen and stymiee. See how the text in …
All 11 Replies
stymiee 111 He's No Good To Me Dead Team Colleague
Dark_Omen 5 Posting Pro
stymiee 111 He's No Good To Me Dead Team Colleague
Dark_Omen 5 Posting Pro
stymiee 111 He's No Good To Me Dead Team Colleague
Dark_Omen 5 Posting Pro
zippee 0 Posting Whiz in Training
stymiee 111 He's No Good To Me Dead Team Colleague

iamthwee
stymiee 111 He's No Good To Me Dead Team Colleague
Puckdropper 7 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.