Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
| Search | Today's Posts | Mark Forums Read
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 10th, 2006, 06:36 AM
Registered User
 
Join Date: Feb 2006
Location: chennai, tamilnadu, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to g.tamilselvan
Default i can not use the mysql_connect() function

hai,

i am using windows XP Professional. I installed mysql5,php4.4 and iis5.1. when i am tring to connect the mysql database through mysql_connect() function, i am being given the error message. function undefined. But in win98 i could use this.


What should i do to use that functions to connect the mysql database. Is there any changes should be made in the php.ini file? if it is s then pls inform me the steps to do.

thank u very much.
  #2 (permalink)  
Old February 13th, 2006, 05:53 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure you're using PHP4.4? In PHP5, the MySQL functions are not compiled in to the main PHP build. Instead you have to enable the MySQL functions by uncommenting the MySQL extension DLL in mysql.ini. In PHP 4.x, you should not need to do this. If you're sure it's PHP 4.4, then double-check that you spelled the function name correctly! :)

Jon Emerson
http://www.jonemerson.net/
  #3 (permalink)  
Old February 14th, 2006, 09:03 AM
Registered User
 
Join Date: Feb 2006
Location: chennai, tamilnadu, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to g.tamilselvan
Default

hai,


thank u guy. Now it's working fine. thanks a lot.:D



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with mysql_connect() Evarias PHP Databases 5 May 24th, 2006 12:01 PM
Call to undefined function mysql_connect() tks_muthu PHP Databases 2 June 14th, 2005 01:23 AM
mysql_connect() will not connect!!!! crazyfool PHP Databases 3 February 26th, 2005 11:09 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM
undefined function: mysql_connect() shabboleth Beginning PHP 2 September 18th, 2003 05:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.