Re: Gallery Pagination Result Problem



ste wrote:
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:mMedncq5GZlHdsbZnZ2dnUVZ_tSdnZ2d@xxxxxxxxxxxxxx

ste wrote:

"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:SNWdnWxNpsKsrMbZnZ2dnUVZ_v-dnZ2d@xxxxxxxxxxxxxx
<snip>

Howdy.

One thing I see - you use $where before you set it. What happens if you move the code which sets $where earlier in your routine?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================


Hi Jerry,

When I moved the code which set's $where to above the first $where, I found that although gallery.php worked fine, gallery.php?category=landscape failed to run and I got an error message.

Do you have any more ideas at all?

I feel like the problem is to do with the $query values and I'm just not setting them correcly with the new piece of code, or not in the right order.

To add to this, I've just noticed that when I load the landscape gallery, not only does it display all images now (albeit in a paginated format) instead of just the landscape images, but if I click the paginated result for page 2, it changes the page title back to just Gallery, instead of the main page of Landscape gallery.

This looks like it's more involved than I thought it would be! :-(

Again, if you or anyone else spot anything else obvious, please let me know.

Thanks,

Stephen

Stephen,

Sounds like you need to study the code and understand it a little more.

I've never found it productive to change code (or even implement someone else's code as part of mine) until I understood just what it was doing.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================


Hi Jerry,

I am doing this too. I've got PHP and My SQL for Dummies, and PHP and MySQL Web Development. Although I know HTML inside out, I'm finding PHP very though going.

By the time I fully understand the code, it could be months and months down the line. I seem quite close with my limited understanding and help from the group, so was just wondering if there was anything quick and obvious that someone could spot that would make it all work.

I'll keep plugging away at it, though I'm still open to suggestions! ;-)

Thanks,

Stephen



Stephen,

Not really at this point. Obvious problems are resolved, but anyone would have to look through a lot more code to understand your latest problems.

Welcome to the world of programming! :-)


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Commands out of sync error
    ... connection at the top of the php page and then calling multiple stored ... When I call the 2nd stored procedure I'm ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Parse .cfm files
    ... from the .cfm page to the .php page. ... the file extension of the source files. ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Getting ID from a presented table
    ... Jerry Stuckle ... JDS Computer Training Corp. ... PHP echo statement instead. ... I do not know how to do that in HTML. ...
    (comp.lang.php)