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
Re: Undefined variable: Origin [message #174234 is a reply to message #174232] Sat, 28 May 2011 09:17 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 28-05-2011 08:51, Co wrote:
> 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

You will need a session

http://nl2.php.net/manual/en/function.session-start.php


--
Luuk
[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 05:49:05 GMT 2024

Total time taken to generate the page: 0.05418 seconds