Triggering a mysql query on page load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • G-MAN

    Triggering a mysql query on page load

    Hello,

    I need to trigger a mySQL select query when the page loads. Is there
    a way I can do this with PHP, javascript, or some other language?

    Thanks,
    KrisG.
  • Anders K. Madsen

    #2
    Re: Triggering a mysql query on page load

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 28 Jul 2004 14:40:08 -0700
    gman3177@yahoo. com (G-MAN) wrote:
    [color=blue]
    > I need to trigger a mySQL select query when the page loads. Is there
    > a way I can do this with PHP, javascript, or some other language?[/color]

    Ehrm... What about putting it at the top of your script?

    (?)

    - --
    Anders K. Madsen --- http://lillesvin.linux.dk

    "There are 10 types of people in the world.
    Those who understand binary - and those who don't."

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBCB3alNH Je/JASHcRAoFLAJwJB xhlD/vAFHsGhfH4o6yuA 0x0mQCggRdF
    ic7q7e7LA0FzJ+M q8UKP9q4=
    =vqEr
    -----END PGP SIGNATURE-----

    Comment

    • Brian

      #3
      Re: Triggering a mysql query on page load

      G-MAN wrote:
      [color=blue]
      > I need to trigger a mySQL select query when the page loads.[/color]

      Automatically, without the user submitting a form?
      [color=blue]
      > Is there a way I can do this with PHP, javascript, or some other
      > language?[/color]

      JavaScript is the only thing I can think of that might permit something
      "onload". But that would at best give you a fragile solution. What are
      you trying to do?

      --
      Brian (remove ".invalid" to email me)

      Comment

      • Geoff Berrow

        #4
        Re: Triggering a mysql query on page load

        I noticed that Message-ID: <20040728234250 .6e325605@lapsv in> from Anders
        K. Madsen contained the following:
        [color=blue][color=green]
        >> I need to trigger a mySQL select query when the page loads. Is there
        >> a way I can do this with PHP, javascript, or some other language?[/color]
        >
        >Ehrm... What about putting it at the top of your script?[/color]
        Works for me...
        --
        Geoff Berrow (put thecat out to email)
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        Working...