Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

finding problem, PHP image creation

LEGEND ,
Oct 10, 2006 Oct 10, 2006
posting this now, might be a no-brainier tomorrow, but JIC.

Here is the page:
http://demo.mediachurch.com/group.php?gid=5

The group image is not visible, but the article image is. They're both
being created with similar code, and worked when they were being produced on
the page (i just removed the link and placed it in a function).

The images are not being created properly, and I'm not sure why. I would
guess it has something to do with turning an & into &, but I don't know
why it's doign it in only once instance...

The article code has already been placed into the general_functions file,
and is working fine. The group picture is not.

Here is the code.

For the Group, where $k is hte image and $m is the size
if(!empty($k)){
$k='<img class="groupimg"
src="app/app_get_img.php?image_path='.$k.'&sz='.$m.'" />';
}

For the Article, where $i is the picture, and $j is the size:
if(!empty($i)){
$i='<img class="newsimg"
src="app/app_get_img.php?image_path='.$i.'&sz='.$j.'" />';

Here is the code produced for the Group Image:
<img class="groupimg"
src="app/app_get_img.php?image_path=images/art_ecbishopswalking_6_18_03.jpg&sz=article">

Here is code produced from Article Image:
<img class="newsimg"
src="app/app_get_img.php?image_path=40/darwindesk.jpg&sz=thumb">


Basically, I guess - what's causing me to lose my & and how can I stop that?
--

TIA,

Jon Parkhurst
PriivaWeb
http://priiva.net.


TOPICS
Server side applications
271
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 11, 2006 Oct 11, 2006
Why is my & being re-encoded into an & in one function when it's not in
the other? Any ideas?

Jon


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2006 Oct 16, 2006
IT was b/c I was echoing the results from w/i the funciton instead of
returnign the results to the page and echoing them there.

not exactly sure *why*, but that's what fixed it.
"crash" <crash@bcdcdigital.com> wrote in message
news:egj0l0$ddb$1@forums.macromedia.com...
> Why is my & being re-encoded into an & in one function when it's not
in
> the other? Any ideas?
>
> Jon
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 16, 2006 Oct 16, 2006
crash,

Since it is relatively off-topic, but I took a look at your website, somehow I notice that your directions page do not show location of your church location. It is kind of bad directions, since people will not be able to know the exact address of your church location.

So you might want to address the problem.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2006 Oct 16, 2006
LATEST
Thanks mate, I'll make a note of that. I'm not very happy with that page
currently. What I really want is to display a map using the location each
church provides, but it's not setup yet.

I was integrating the address with the map links (testing) but I SHOULD make
sure to display it ont he page as well.


"Deaf Web Designer" <webforumsuser@macromedia.com> wrote in message
news:eh0d7f$ess$1@forums.macromedia.com...
> crash,
>
> Since it is relatively off-topic, butI took a look at your website,
somehow I
> notice that your directions page do not show location of your church
location.
> It is kind of bad directions, since people will not be able to know the
exact
> address of your church location.
>
> So you might want to address the problem.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines