1. #1
    EmmaFlower is an unknown quantity at this point Registered User
    Join Date
    Jul 2008
    Location
    at home
    Posts
    103
    Thanks
    6
    Thanked 0 Times in 0 Posts

    mysql php help

    Hi,

    when I try to connect to mysql I get this error on the page

    Fatal error: Call to undefined function mysql_connect() in \\web-wfwin\soho\footballonthetv.co.uk\http://www.affiliates4u.com/forums/w...\cdsbought.php on line 17

    here is the test page itself, http://www.footballonthetv.co.uk/cdsbought.php

    I had a look at the php.ini to check the extension=php_mysql.dll was un coloned and it seems ok, any ideas?

    Emma

  2. #2
    accelerator is an unknown quantity at this point Online shopping rocks!
    Join Date
    Nov 2004
    Location
    England
    Posts
    2,350
    Thanks
    43
    Thanked 140 Times in 124 Posts
    You have referenced a function in your code on that line, which means the actual function must be stated somewhere in the PHP file. Functions normally go at the top of the page, or are often in a separate inc-functions.php file, which gets included in your script. A function looks like this:

    function YourFunctionNameHere() {
    ...
    }

    Ask at phpfreaks.com if you need more help or see:

    PHP Tutorials

    Rgds

  3. #3
    jramroop is an unknown quantity at this point Registered User
    Join Date
    May 2009
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Quote Originally Posted by EmmaFlower View Post
    Hi,

    when I try to connect to mysql I get this error on the page

    Fatal error: Call to undefined function mysql_connect() in \\web-wfwin\soho\footballonthetv.co.uk\http://www.affiliates4u.com/forums/w...\cdsbought.php on line 17

    here is the test page itself, List of CDS

    I had a look at the php.ini to check the extension=php_mysql.dll was un coloned and it seems ok, any ideas?

    Emma
    Hi Emma,

    this error normally means that PHP has not been compiled with mysql support. (mysql.so extension) this does not come with PHP or MySQL distributions on certain platforms. You can check this by uploading this script to your server:

    PHP Code:
    <?php
    phpinfo
    ();
    exit();
    ?>
    Post the link here and I'll have a look for you.

    Cheers
    James

  4. #4
    EmmaFlower is an unknown quantity at this point Registered User
    Join Date
    Jul 2008
    Location
    at home
    Posts
    103
    Thanks
    6
    Thanked 0 Times in 0 Posts
    thanks accelarator I will take a look at that.

    James www.footballonthetv.co.uk/testphp.php

    it's coming up

    No input file specified.

    ???!!???

  5. #5
    jramroop is an unknown quantity at this point Registered User
    Join Date
    May 2009
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Quote Originally Posted by EmmaFlower View Post
    t
    James www.footballonthetv.co.uk/testphp.php

    it's coming up

    No input file specified.

    ???!!???
    I am assuming your website is on a Windows Server.
    This could be a path related issue.. what the

    "doc_root" path in your php.ini?

    You might need to contact your hosting provider and get them to fix it. It's a web server or php configuration issue.

  6. #6
    jramroop is an unknown quantity at this point Registered User
    Join Date
    May 2009
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    This might also help:

    No input file specified | IIS Aid


  7. #7
    EmmaFlower is an unknown quantity at this point Registered User
    Join Date
    Jul 2008
    Location
    at home
    Posts
    103
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jramroop View Post
    I am assuming your website is on a Windows Server.
    This could be a path related issue.. what the

    "doc_root" path in your php.ini?

    You might need to contact your hosting provider and get them to fix it. It's a web server or php configuration issue.
    This is what I can see

    The root of the PHP pages, used only if nonempty.

    and yes it is on a windows server
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root =

    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    user_dir =

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir ="C:\Program Files\PHP\ext"

  8. #8
    jramroop is an unknown quantity at this point Registered User
    Join Date
    May 2009
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 1 Post
    Hi Emma,

    Is this a local/development or production server?
    If it's local, you can play around with the php.ini settings and see if that makes a difference..

    Refer to this website and comments to find out the different settings you can try

    No input file specified | IIS Aid

    Hope this helps..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Best PHP & MySQL
    By Stellar in forum Programming
    Replies: 13
    Last Post: 28-07-06, 05:27 PM
  2. MYSQL Help Please
    By SmallBizSoftware in forum Affiliate Marketing Lounge
    Replies: 2
    Last Post: 21-03-06, 11:28 PM
  3. MySQL Help!
    By ukyellowpage in forum Programming
    Replies: 17
    Last Post: 19-02-05, 12:12 PM
  4. CSV -> MySQL
    By shanesdomainuk in forum Programming
    Replies: 3
    Last Post: 23-11-04, 01:08 PM
  5. MySQL
    By Stuart in forum Programming
    Replies: 8
    Last Post: 18-04-04, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC2