Re: [PHP] Mozilla/Opera issue

2007-02-20 Thread Richard Lynch
We'd have to see source, but odds are really good that you are doing
something like this:

$page = $_SESSION['page'];
$query = "select stuff from reeds where .. limit 10 * $page";
$_SESSION['page'] = $_GET['page'];

So you are updating the 'page' a bit "too late"

Of course, you've got a few hundred more lines of code in between all
that, so it's not clear to you that this is happening.

Add a bunch of:
echo "page: $page\n";
lines all over the place until you can track it down.

Or if this site is live, do more like:
error_log(__FILE__ . ': ' . __LINE__ . " page: $page");

If all else fails, re-post, but include a link to your actual PHP
source code.

You can copy it into a .txt file, or, for maximum geekinees, on a Un*x
based box, you can:
ln -s products_list.php products_list.phps

You then configure Apache to display .phps files as PHP Source (it
should be in there but commented out) and then a link to the .phps
file looks something like this:
http://uncommonground.com/events.phps

Only your code is probably/hopefully way more better than that old
code I wrote.

On Tue, February 20, 2007 4:40 am, Chris Aitken wrote:
> Hi All,
>
>
>
> I am clutching at straws here, but I have come across an issue that I
> don't
> know whether it's a PHP problem in my coding, or HTML, or something
> entirely
> different but I've never seen this happen before, and this list has
> always
> helped me out in the past with odd problems.
>
>
>
> I am developing a site at the moment which is causing a very unusual
> trait
> in both mozilla and opera browsers.
>
>
>
> http://www.reedsandmore.com.au/index2.php
>
>
>
> For example..
>
>
>
> * Click on Clarinet Reeds & More
> * Click on Bb Clarinet Reeds
> * You will see the first page showing the first 12 items (hopefully it
> will)
> * Scroll to the bottom and click on "Next"
> * Look at the page that gets refreshed... it's the first page again.
> Yet in the URL it shows the URL for "page=2"
> * Now to actually bring up page 2, you can click on RELOAD, or simply
> click on "Next" at the bottom of the screen again. This will bring up
> the
> proper page 2.
> * Now do the same to bring up page 3. Same thing occurs. Page 2 is
> re-displayed, and page 3 will not come up until you click on Next
> again, or
> click on RELOAD.
> * The same thing happens in reverse back down through the pages.
>
>
>
> If anyone can point me in the right direction of this or if you have
> come
> across this in the past, please any assistance would be greatly
> appreciated.
> The code is valid to XHTML 1.0 Transitional as my initial thought was
> that
> something wasn't valid.
>
>
>
> Any help will be appreciated.
>
>
>
>
>
>
>
> Regards
>
>
>
>
> Chris Aitken
> The Web Hub Designer and Programmer
> Phone : 02 4648 0808
> Mobile : 0411 132 075
>
>
>
> -
>
>
>
> Making The Web Work The Web Hub
>   http://www.thewebhub.com.au/
>   [EMAIL PROTECTED]
>
>
>
> -
>
>
>
> Confidentiality Statement:
> This message is intended only for the use of the Addressee and may
> contain
> information that is PRIVILEDGED and CONFIDENTIAL.  If you are not the
> intended recipient, dissemination of this communication is prohibited.
> If you have received this communication in error, please erase all
> copies of the message and its attachments and notify us immediately.
>
>
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mozilla/Opera issue

2007-02-20 Thread clive
Your code is probably flawed,try putting some debug code in, echo out 
some variables and see what happens.



--
Regards,

Clive.

Real Time Travel Connections


{No electrons were harmed in the creation, transmission or reading of 
this email. However, many were excited and some may well have enjoyed 
the experience.}


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mozilla/Opera issue

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 21.40-kor Chris Aitken ezt írta:
> Hi All,
> 
>  
> 
> I am clutching at straws here, but I have come across an issue that I don't
> know whether it's a PHP problem in my coding, or HTML, or something entirely
> different but I've never seen this happen before, and this list has always
> helped me out in the past with odd problems.
> 
>  
> 
> I am developing a site at the moment which is causing a very unusual trait
> in both mozilla and opera browsers.
> 
>  
> 
> http://www.reedsandmore.com.au/index2.php
> 
>  
> 
> For example..
> 
>  
> 
> * Click on Clarinet Reeds & More
> * Click on Bb Clarinet Reeds
> * You will see the first page showing the first 12 items (hopefully it
> will)
> * Scroll to the bottom and click on "Next"
> * Look at the page that gets refreshed... it's the first page again.
> Yet in the URL it shows the URL for "page=2"
> * Now to actually bring up page 2, you can click on RELOAD, or simply
> click on "Next" at the bottom of the screen again. This will bring up the
> proper page 2.
> * Now do the same to bring up page 3. Same thing occurs. Page 2 is
> re-displayed, and page 3 will not come up until you click on Next again, or
> click on RELOAD.
> * The same thing happens in reverse back down through the pages.
> 
>  
> 
> If anyone can point me in the right direction of this or if you have come
> across this in the past, please any assistance would be greatly appreciated.
> The code is valid to XHTML 1.0 Transitional as my initial thought was that
> something wasn't valid.
> 

I tried it with Firefox on Ubuntu Linux and IE on XP and the problem
appears on both. The link itself points to the correct url. So the
problem should be in your php code. Maybe it has something to do with
sessions, but I cannot tell anything more unless you show your code.

greets
Zoltán Németh

>  
> 
> Any help will be appreciated.
> 
>  
> 
> 
> 
> 
> 
> Regards
> 
>  
> 
> 
> Chris Aitken
> The Web Hub Designer and Programmer
> Phone : 02 4648 0808
> Mobile : 0411 132 075
> 
>  
> 
> -
> 
>  
> 
> Making The Web Work The Web Hub
>   http://www.thewebhub.com.au/
>   [EMAIL PROTECTED]
> 
>  
> 
> -
> 
>  
> 
> Confidentiality Statement:  
> This message is intended only for the use of the Addressee and may contain 
> information that is PRIVILEDGED and CONFIDENTIAL.  If you are not the 
> intended recipient, dissemination of this communication is prohibited.  
> If you have received this communication in error, please erase all 
> copies of the message and its attachments and notify us immediately.
> 
>  
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mozilla/Opera issue

2007-02-20 Thread Chris Aitken
Hi All,

 

I am clutching at straws here, but I have come across an issue that I don't
know whether it's a PHP problem in my coding, or HTML, or something entirely
different but I've never seen this happen before, and this list has always
helped me out in the past with odd problems.

 

I am developing a site at the moment which is causing a very unusual trait
in both mozilla and opera browsers.

 

http://www.reedsandmore.com.au/index2.php

 

For example..

 

*   Click on Clarinet Reeds & More
*   Click on Bb Clarinet Reeds
*   You will see the first page showing the first 12 items (hopefully it
will)
*   Scroll to the bottom and click on "Next"
*   Look at the page that gets refreshed... it's the first page again.
Yet in the URL it shows the URL for "page=2"
*   Now to actually bring up page 2, you can click on RELOAD, or simply
click on "Next" at the bottom of the screen again. This will bring up the
proper page 2.
*   Now do the same to bring up page 3. Same thing occurs. Page 2 is
re-displayed, and page 3 will not come up until you click on Next again, or
click on RELOAD.
*   The same thing happens in reverse back down through the pages.

 

If anyone can point me in the right direction of this or if you have come
across this in the past, please any assistance would be greatly appreciated.
The code is valid to XHTML 1.0 Transitional as my initial thought was that
something wasn't valid.

 

Any help will be appreciated.

 

 

 

Regards

 


Chris Aitken
The Web Hub Designer and Programmer
Phone : 02 4648 0808
Mobile : 0411 132 075

 

-

 

Making The Web Work The Web Hub
  http://www.thewebhub.com.au/
  [EMAIL PROTECTED]

 

-

 

Confidentiality Statement:  
This message is intended only for the use of the Addressee and may contain 
information that is PRIVILEDGED and CONFIDENTIAL.  If you are not the 
intended recipient, dissemination of this communication is prohibited.  
If you have received this communication in error, please erase all 
copies of the message and its attachments and notify us immediately.