Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP page not passing search criteria to MySQL - Since new install

Discussion in 'General Discussion' started by djblamire, May 30, 2006.

  1. djblamire

    djblamire Well-Known Member

    May 3, 2003
    Likes Received:
    Trophy Points:
    Since I had a replacement hard drive installed, I am having problems with some of my PHP pages.

    When you type in your search criteria into a text box, and submit it - It doesn't pass the value onto the script that selects them from the MySQL database.

    Has anyone else experienced this problem ,or know of a solution.

    I am running MySQL 4.1.18 and PHP 4.4.2

    #1 djblamire, May 30, 2006
    Last edited: May 30, 2006
  2. webignition

    webignition Well-Known Member

    Jan 22, 2005
    Likes Received:
    Trophy Points:
    That's by far a very vague description of the problem. You'd have to investigate at least a little if you're hoping for people to offer advice.

    The issue you describe (replacement hd) doesn't sound like it can be related to your problem (odd php/mysql behaviour).

    Troubleshoot the issue first, find out where things are going wrong and then post back if you are unsure of how to resolve the issue.

    To begin with, check the following:

    1) What values are being picked up by the PHP script
    Aer you using register_globals style referencing of POSTed/GETed values, or are you accessing them through $_POST/$_GET? What values are present and how do they compare to what you expect.

    2) Whether it is generating the query string correctly
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nickp666

    nickp666 Well-Known Member

    Jan 28, 2005
    Likes Received:
    Trophy Points:
    sounds like register_globals is off (as is by default) and the script is using global variables
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice