We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24969
    • 120 Posts
    Sorry for the confusion, I would like it to load on the same page as the dropdowns, but there is already text on the page from the initial loading of it, as well as the initial dropdowns.

    If you would like to see it, click on the link http://modx.chrys-haefen.com/index.php?id=32&dogid=129

    This dog it isn’t working correctly yet but if you put any number in it will pull the page I am needing help with.
      The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity.

      -Albert Einstein (1879 - 1955)

      Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
      • 29774
      • 386 Posts
      An aside - you can help avoid typos like this, make your sql nicely readable and ensure the correct type for your arguments using sprintf():
      $sql = sprintf("
             SELECT callname, regname
             FROM tbldogs
             WHERE dog_id=%d",
             (int)$id
             );
      $rs=$modx->db->query($sql);
      

        Snippets: GoogleMap | FileDetails | Related Plugin: SSL
        • 24969
        • 120 Posts
        Thanks for the info therebechips...
        I’ve never used the sprintf function... but I am going to start.
          The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity.

          -Albert Einstein (1879 - 1955)

          Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635