/    Sign up×
Community /Pin to ProfileBookmark

print function problems

hey guys!
I have have some troubles to diplay some information on the screen! the code is very simple, but I don’t know why it doesn’t want to display it

here it is the code:

[code=php]
$search='<Valute ID=”‘.$valute[$word].'”>’;
print “<br><br>Search: $search <br><br>”;
[/code]

I checked the array with foreach, and it is ok.
If I write the code like this it woks:

[code=php]
$search='<Valute ID=”‘.$valute[$word].”>”;
print “<br><br>Search: $search <br><br>”;
[/code]

But I need $search=$search='<Valute ID=”‘.$valute[$word].'”>’;
Please give me some ideas to solve this!

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ronverdonkSep 24.2006 — Maybe you can use this, where I replaced the <> tags to &lt;&gt;
[code=php]$search = "&lt;Valute ID='$valute[$word]'&gt;";[/code]

Ronald ?
Copy linkTweet thisAlerts:
@NogDogSep 24.2006 — Is it possible there's something wrong with the HTML that preceds this? It might be a good idea to run the output through [url=http://validator.w3.org/]the HTML Validator[/url].
Copy linkTweet thisAlerts:
@byte_eaterauthorSep 24.2006 — Maybe you can use this, where I replaced the <> tags to &lt;&gt;
[code=php]$search = "&lt;Valute ID='$valute[$word]'&gt;";[/code]

Ronald ?[/QUOTE]


Thanks man! it works.... I had such a headache today with this stuff? thanks...
×

Success!

Help @byte_eater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...