I do not understand why $atitle is not being shown as it should be.
This is just an experiment.]]>richard2013-03-08T01:13:48-00:00Re: echo outputs null why?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=180652&th=122971#msg_180652
> http://mroldies.net/urltest.php?rank=1
>
> <?php
>
> $rank=$_GET["rank"];
>
> echo $rank;
>
> if ($rank==1) {
> $atitle="A Summer Place";
> $cover="1960-001.jpg";
> };
>
> echo $atitle;
> echo "<img src='http://mroldies.net/covers/$cover'>";
>
> ?>
>
> I do not understand why $atitle is not being shown as it should be.
>
> This is just an experiment.
var_dump($_GET);
To see what is there.
--
Cheers
David Robley
Help stamp out, eliminate, and abolish redundancy!]]>David Robley2013-03-08T02:35:16-00:00Re: echo outputs null why?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=180658&th=122971#msg_180658
> http://mroldies.net/urltest.php?rank=1
>
> <?php
>
> $rank=$_GET["rank"];
>
> echo $rank;
>
> if ($rank==1) {
> $atitle="A Summer Place";
> $cover="1960-001.jpg";
> };
>
> echo $atitle;
> echo "<img src='http://mroldies.net/covers/$cover'>";
>
> ?>
>
> I do not understand why $atitle is not being shown as it should be.
>
> This is just an experiment.
figured it out.
I've figured out another way of handling my massive data problem and it is
so simple it's pathetic.
No array needed.
The page has a very small footprint compared to one with a large array.]]>richard2013-03-08T04:36:58-00:00Re: echo outputs null why?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=180708&th=122971#msg_180708
> I do not understand why $atitle is not being shown as it should be.