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 #174236 is a reply to message #174235] Sat, 28 May 2011 09:34 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 28-05-2011 11:30, Co wrote:
> 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

What is wrong with the examples at the given page?

--
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: Sat Nov 30 00:23:03 GMT 2024

Total time taken to generate the page: 0.04400 seconds