Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    13
    Member #
    14334
    I installed Apache and PHP. Test script: <? phpinfo() ?> works. I installed MySQL using an installer. However, when I attempt to use some mysql functions in my PHP code I get an error: "function undefined". How shoud I cfg PHP/MySQL to make it work?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Is this Windows or *Nix?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    13
    Member #
    14334
    Win XP SP2

  5. #4
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    Which mysql functions are you trying to use? Maybe you're trying mysql_connect when you should be using mssql_connect, etc?
    choosy developers choose gif!
    website | paintings | blog

  6. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    13
    Member #
    14334
    "mssql_connect" doesn't work either. :] BTW, should i declare some kind of header while using MySQL functions. How doeas PHP "know" MySQL functions. In C++ one must declare a header with an interface...

  7. #6
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    No, in PHP you can just use them, you don't have to include any header...
    Maybe php.net can help you?
    http://us3.php.net/manual/en/ref.mssql.php
    choosy developers choose gif!
    website | paintings | blog

  8. #7
    Junior Member
    Join Date
    Nov 2006
    Posts
    13
    Member #
    14334
    I solved it!

    The cause:

    1. MySQL dlls in my php.ini were commented - ";"
    2. My extension_dir was wrong.

    After correcting this, script with mysql_ calls WORKS!

  9. #8
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    cool!
    choosy developers choose gif!
    website | paintings | blog


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:36 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com