Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
apostrophes in php output
Old 10-23-2008, 09:10 PM apostrophes in php output
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Hi, I get information pulled then displayed on the webpage using the following code.

Code:
$str .='<span id="left"><b> Project : '.$data[$i]['name'].'</b></span>
<span id="right"><a href="javascript:animatedcollapse.toggle(test)" class="style5">Toggle Details</a></span>';
The javascript link gives a drop down details list.
Problem is that i need (test) to be ('test') and ofcourse it dislikes the apostrophes in the code.

What I need is for it to be
Code:
"javascript:animatedcollapse.toggle('test')"
Anyway to get apostrophes in there?
__________________
Websites Created;
warscope.com
ratepayers.org.nz

Last edited by lothop; 10-23-2008 at 09:11 PM..
lothop is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2008, 10:15 PM Re: apostrophes in php output
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
backslash the apostrophes (\'test\')
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-24-2008, 12:29 AM Re: apostrophes in php output
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Awesome, thanks for the quick answer.

I check the google machine and I put them after the '.
Works

Added positive to ur talkublahblah
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to apostrophes in php output
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71470 seconds with 12 queries