FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » echo outputs null why?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: echo outputs null why? [message #180658 is a reply to message #180649] Fri, 08 March 2013 04:36 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Thu, 7 Mar 2013 20:13:48 -0500, richard wrote:

> 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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: In php applying the KISS rule wins every time
Next Topic: Re: Cloud Computing with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 02:19:29 GMT 2024

Total time taken to generate the page: 0.04629 seconds