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
echo outputs null why? [message #180649] Fri, 08 March 2013 01:13 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
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.
[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 Sep 28 21:30:38 GMT 2024

Total time taken to generate the page: 0.05430 seconds