[HELP] undefined function mysql_connect even with proper php.ini menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] undefined function mysql_connect even with proper php.ini

    ---------------
    SOLVED
    ---------------

    PHP tought the php.ini is in C:\Windows.
    Last edited by visitor; 04-17-2009 at 03:26 PM.
    Hey I just met you

    [HELP] undefined function mysql_connect even with proper php.ini
  2. #2
    Sirupsen's Avatar Member
    Reputation
    25
    Join Date
    Oct 2007
    Posts
    260
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now I'm not sure how it works when you run it on your own machine, but when you want to connect to a database you'd usually need to tell which database by name..?
    Like this:
    PHP Code:
    <?php
    DEFINE 
    ('DB_USER''username');
    DEFINE ('DB_PASSWORD''password');
    DEFINE ('DB_HOST''localhost');
    DEFINE ('DB_NAME''database_name');
     
    $dbc = @mysql_connect (DB_HOSTDB_USERDB_PASSWORD) OR die ('Could not connect to MySQL: ' mysql_error());
    @
    mysql_select_db (DB_NAME) OR die('Could not select the database: ' mysql_error() );
    ?>



  3. #3
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it means the same on my own machine
    php has a problem with mysql because php cant define mysql_connect() function.
    Hey I just met you

  4. #4
    paulddaw's Avatar Member
    Reputation
    4
    Join Date
    Jun 2007
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe a bit late, but it'll help anyone else who has this problem. PHP must be compiled WITH mysql_support enabled. MySQL Support is disabled by default from version 5.x.x onwards.

Similar Threads

  1. Help with a php line
    By Shayden85 in forum Community Chat
    Replies: 2
    Last Post: 03-08-2012, 04:13 AM
  2. Need help with a PHP Script
    By Fireking300 in forum Programming
    Replies: 2
    Last Post: 06-13-2009, 02:27 PM
  3. [HELP] Even with a .skin swap I can't get my druid to change.
    By Lakotaness in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-04-2008, 12:14 AM
  4. Need Help: Go's Dissapear even with save
    By kev3136 in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 09-14-2008, 03:51 AM
  5. HELP with Index.PHP
    By [uF] in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-23-2008, 10:38 PM
All times are GMT -5. The time now is 11:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search