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 #174235 is a reply to message #174234] Sat, 28 May 2011 09:30 Go to previous messageGo to previous message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma:
Member
On 28 mei, 11:17, Luuk <L...@invalid.lan> wrote:
> 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

Can you have more than one sessions?
Could you give me some example of start and end of this session?

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: Sat Nov 30 01:23:37 GMT 2024

Total time taken to generate the page: 0.04134 seconds