Re: A question that has been bugging me..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote:

On 8/16/07, Jason Pruim <japruim@xxxxxxxxxx> wrote:
Hey Everyone,

Is it possible to have variables affect the database results of an
included php page in a shtml page? Let me try and clear that up...

index.shtml?order=a <---- that does not resort the database results
index.php?order=a <----- That DOES resort the database results...

    To give a bit more information on the very extensions may help to
explain the problem, J.

.php = PHP Hypertext Preprocessor (a recursive algorithm since PHP3)
    .shtml = SSI HTML (Server-Side Includes/HyperText Markup Language)

    SHTML is only used to include a file at the time the content is
being served by the host.  Conversely, PHP processes the .php script
at the time of request, but without any of the query string being
passed.

    Consider it as if the .shtml file is a browser on a remote
computer.  Whatever is inside the <!--#include virtual="(.*)"--> tag
will be processed exactly like that, but you can't pass any info to
that.

    If that just confused you even more, blame it on my lack of coffee
this morning....

Hey Dan,

It didn't confuse me, it told me what I had thought and just wanted confirmed. To be able to change the default order of the record set in the php page, I have to use the .php page instead of my pretty .shtml page :) Now, I just need to figure out how to make my .php page pretty :)

Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand what sessions are used for? :)

And yes I am spending time at phpsec.org! Great site :) Learning lots of stuff. Hopefully I'll be able to understand it, and use the info I learn from it :)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux