Jump to content

& inside variable


Guest

Recommended Posts

[quote author=jeff8j link=topic=121948.msg502625#msg502625 date=1168554127]
[code]$simage = "" . $website . "/inc/view.php?type=house&id=$hid&image=1&hei=100&wid=100";[/code]
[/quote]

That first "" . is superfluous.

This is a pretty wacky problem. That is your exact code? You're not running any functions on the string, or getting it from a db, etc?
Link to comment
https://forums.phpfreaks.com/topic/33751-inside-variable/#findComment-158671
Share on other sites

[quote author=jeff8j link=topic=121948.msg502672#msg502672 date=1168556424]
Yes i see it in the source. No i dont have a website to access it right now.
[/quote]

He asked what do you see in the source :-P

I know there are some restrictions on what html can be used inside of a table cell. What happens if you print it outside of a cell?
Link to comment
https://forums.phpfreaks.com/topic/33751-inside-variable/#findComment-158672
Share on other sites

I tested this very short script to see if I could duplicate the problem:
[code]<?php
echo '<a href="http://www.example.com/index.php?x=1&y=2&z=3&amp;a=ten">
<img src="http://www.example.com/img.php?x=1&y=2"</a>';
?>[/code]

I couldn't.

Could you see you this script causes the problem on your server?

Ken
Link to comment
https://forums.phpfreaks.com/topic/33751-inside-variable/#findComment-158677
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.