473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

MySQL help

I'm having trouble with MySQL. When I try to use mysqli_connect(), it says
"call to undefined function". Any advice?
Jul 17 '05 #1
4 1649
Michael Bradley-Robbins wrote:
I'm having trouble with MySQL. When I try to use mysqli_connect(), it
says "call to undefined function". Any advice?


The mysqli extension isn't enabled by default, but you must compile PHP
explicitly with the appropriate flag (or have the extension directive in
your php.ini point to the php_mysqli.dll under Windows).

See http://www.php.net/mysqli for more info.
JW


Jul 17 '05 #2
well, I may seem a newbie, but how do i configure the path to the extensions
in Windows?

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:41***********************@news.euronet.nl...
Michael Bradley-Robbins wrote:
I'm having trouble with MySQL. When I try to use mysqli_connect(), it
says "call to undefined function". Any advice?


The mysqli extension isn't enabled by default, but you must compile PHP
explicitly with the appropriate flag (or have the extension directive in
your php.ini point to the php_mysqli.dll under Windows).

See http://www.php.net/mysqli for more info.
JW

Jul 17 '05 #3
Michael Bradley-Robbins wrote:
well, I may seem a newbie, but how do i configure the path to the
extensions in Windows?


In your php.ini file, you will find something like the following:

;extension=php_xdebug.dll
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll

Just add a line like (without the preceding semicolon):

extension=php_mysqli.dll

Ensure that the php_mysqli.dll is located in the directory indicated by the
extension_dir directive and restart your webserver.
JW

Jul 17 '05 #4
Yeah, i got that, but I can't figure out what to do with the extension_dir
directive.

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:41***********************@news.euronet.nl...
Michael Bradley-Robbins wrote:
well, I may seem a newbie, but how do i configure the path to the
extensions in Windows?


In your php.ini file, you will find something like the following:

;extension=php_xdebug.dll
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll

Just add a line like (without the preceding semicolon):

extension=php_mysqli.dll

Ensure that the php_mysqli.dll is located in the directory indicated by
the extension_dir directive and restart your webserver.
JW

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has...
0
by: Girish Agarwal | last post by:
--0-474210375-1058976151=:31789 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Note: forwarded message attached. __________________________________
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
3
by: Kirk Soodhalter | last post by:
Hi, This started as a phpmyadmin problem, but has somehow morphed into a mysql problem. I don't know how to fix it. I am posting the conversation from a php newsgroup since it started there. ...
2
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at:...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
5
by: MLH | last post by:
I'm supposed to set a password for the MySQL root user. The output of mysql_install_db instructed me to run the following commands... /usr/bin/mysqladmin -u root -h appserver password mynwewpasswd...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
1
by: PowerLifter1450 | last post by:
I've been having a very rough time installinig mySQL on Linux. I have been following the instructions form here: http://www.hostlibrary.com/installing_apache_mysql_php_on_linux Everytime I get to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.