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

Home » Imported messages » comp.lang.php » Undefined variable: Origin
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Undefined variable: Origin [message #174232] Sat, 28 May 2011 06:51 Go to previous message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma:
Member
Hi All,

I give two values from one php page to the next.
<a href="MembersFrom.php?myCountry=Netherlands&myFlag=nl.gif">

On the second page I first define them:
if (isset($_GET['myCountry'])) {
$Origin = $_GET['myCountry'];
$Flag = $_GET['myFlag'];
}

$queryString = "WHERE email_activated='1' AND country='$Origin' AND
active='1' ORDER BY id ASC";
$sql2 = mysql_query("SELECT * FROM myMembers $queryString $limit") ;

I limit the data to one record per page.
However when I want to go to the next record on a new page he doesn't
recognize the variable Origin anymore in here:
$queryString = "WHERE email_activated='1' AND country='$Origin' AND
active='1' ORDER BY id ASC";

How should I save the value in Origin so it can be used everytime
again?

Marco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Persistence engine for GWT
Next Topic: input country name and query database to output google map
Goto Forum:
  

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

Current Time: Tue Nov 26 03:41:05 GMT 2024

Total time taken to generate the page: 0.05012 seconds