Re: Need quick got written up yesterday!! OUCH (RESOLVED)

Re: Need quick got written up yesterday!! OUCH (RESOLVED)

am 04.08.2009 17:04:16 von Phpster

On Tue, Aug 4, 2009 at 10:58 AM, Miller,
Terion wrote:
>
>
>
> ---snip----
>
> Was going to say the exact same thing. =A0No one should have to put up wi=
th that crap.
>
> I suggest if this was a normal occurrence, a chat with him would be a sta=
rt. =A0If you get nowhere with that, a trip to HR would be good.
>
> Shouting at someone is counter-productive, and there more you put up with=
it, the more your boss will feel empowerment over you,
>
> Regards,
> Kevin
>
>
> Thanks guys!! I actually do have an appt with HR at 2pm today. =A0And his=
yelling fix didn't fix it at all...now it just displays default "A" listin=
gs on all pages which is what he does NOT want....4 minutes until my deadli=
ne...guess I won't make this one. =A0Think I will go be a bartender and flo=
rist again..that's how I got thru college..so much less stress....I'm going=
to start using the pastebin for my code I can't figure out my settings I t=
ell it text but it seems to jumble it anyways....
> So if anyone wants to have a look here is the link for the script
>
> http://pastebin.ca/1517966
>
> I don't get why the $_SERVER['browse.php'] stopped working....
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

What is the goal to show when there is nothing chosen (currently
resulting in your default 'A' listing)

--=20

Bastien

Cat, the other other white meat

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

Re: Need quick got written up yesterday!! OUCH (RESOLVED)

am 04.08.2009 17:10:39 von tmiller

On 8/4/09 10:04 AM, "Bastien Koert" wrote:

On Tue, Aug 4, 2009 at 10:58 AM, Miller,
Terion wrote:
>
>
>
> ---snip----
>
---snip-----
>
> http://pastebin.ca/1517966
>
> I don't get why the $_SERVER['browse.php'] stopped working....
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

What is the goal to show when there is nothing chosen (currently
resulting in your default 'A' listing)

--

Bastien

Cat, the other other white meat

yep the current goal is that when the user first lands on the page browse.p=
hp it will default to show the 'a' listings, on other pages no listings unl=
ess a menu option is selected will show.




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

Re: Need quick got written up yesterday!! OUCH (RESOLVED)

am 04.08.2009 17:26:37 von Shawn McKenzie

Miller, Terion wrote:
>
>
> On 8/4/09 10:04 AM, "Bastien Koert" wrote:
>
> On Tue, Aug 4, 2009 at 10:58 AM, Miller,
> Terion wrote:
>>
>>
>> ---snip----
>>
> ---snip-----
>> http://pastebin.ca/1517966
>>
>> I don't get why the $_SERVER['browse.php'] stopped working....
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> What is the goal to show when there is nothing chosen (currently
> resulting in your default 'A' listing)
>
> --
>
> Bastien
>
> Cat, the other other white meat
>
> yep the current goal is that when the user first lands on the page browse.php it will default to show the 'a' listings, on other pages no listings unless a menu option is selected will show.
>
>
>

I couldn't help looking at the code.

1. There is no $_GET['letter'], there is a $_GET['ID'], so this:
// Main controller which page to show.

Will call browse('A')

2. This:
//if the page is browse default to A's if on other pages just show
pagination links and not default listings

Does absolutely nothing because it sets the $letter var, which you don't
even use except to overwrite it with your foreach:

foreach($letters as $letter)

Walk through your code step by step and you'll see the problems.

--
Thanks!
-Shawn
http://www.spidean.com

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