Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2003
    Posts
    208

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

    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

    Thanks
    Daniel
    Last edited by djblamire; 05-30-2006 at 06:52 PM.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    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

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    sounds like register_globals is off (as is by default) and the script is using global variables

Similar Threads & Tags
Similar threads

  1. WHM and passing PHP vars to shell
    By sv70 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-09-2009, 11:04 AM
  2. PHP: Passing details to :2086/scripts/wwwacct
    By larttaus in forum cPanel Developers
    Replies: 18
    Last Post: 07-17-2007, 07:52 AM
  3. PHP page not passing search criteria to MySQL - Since new install
    By djblamire in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-30-2006, 06:22 PM
  4. PHP page not passing search criteria to MySQL - Since new install
    By djblamire in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-30-2006, 06:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube