Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Last Chaos
You last visited: Today at 06:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Call to undefined function mysql_connect()

Discussion on Call to undefined function mysql_connect() within the Last Chaos forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2018
Posts: 17
Received Thanks: 0
Call to undefined function mysql_connect()

Hello all.
I've been getting this error
Call to undefined function mysql_connect(). whenever I try to run a LC website through xampp, one is working but 2 others give that error. so I was wondering if I need to make a function somewhere or maybe I'm missing something.
would appreciate the help.
yanharazra2 is offline  
Old 06/05/2021, 17:20   #2
 
elite*gold: 265
Join Date: Jul 2009
Posts: 736
Received Thanks: 2,147
The old mysql functions can not be used anymore, unless you use php4

Wizatek is offline  
Thanks
1 User
Old 06/07/2021, 10:57   #3

 
theDJ-scripts's Avatar
 
elite*gold: 319
Join Date: May 2011
Posts: 147
Received Thanks: 31
In the most cases you can just replace "mysql_" with "mysqli_". If this also don't work, just check out your php.ini for extension=php_mysql.dll (or .so or without an extension, without # at the beginning). If you continue to have problems, please feel free to contact us.
theDJ-scripts is offline  
Old 06/07/2021, 22:31   #4

 
elite*gold: 2
Join Date: May 2010
Posts: 2,257
Received Thanks: 1,919
Quote:
Originally Posted by theDJ-scripts View Post
In the most cases you can just replace "mysql_" with "mysqli_". If this also don't work, just check out your php.ini for extension=php_mysql.dll (or .so or without an extension, without # at the beginning). If you continue to have problems, please feel free to contact us.
Object oriented correct but procedural false, there you always have to give the connection:

PHP Code:
mysql_query($sql); 
to

PHP Code:
mysqli_query($con$sql); 
You can try PDO-MYSQL too.
Ih¢sãs123 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Fatal Error: Call to undefined function result()
08/14/2013 - Web Development - 2 Replies
Hi everyone... i am going to advance learning in php..its about bmi so in the code area.. i will not put the code in some area because it is a currently activity and i dont want my classmates to search and find this page out.. <?php if isset($_POST) // if the button is submitted if ... // if the height field area is empty ...//statement of it saying it is an error elseif .... //if the weight field area is empty ...//statement of it saying it is an error else //if the height and weight is...
Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/d
04/03/2010 - Metin2 Private Server - 3 Replies
Fehler kann mir jmd. da helfen? Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/data/regist_yes.php on line 50
Fatal error: Call to undefined function mysql_connect()
02/16/2010 - Metin2 Private Server - 3 Replies
hi elitepvpers da ich bei einem problem einfach nicht weiterkomme, hoffe ich hier hilfe zu finden. Ich habe auf FreeBsd Apache Mysql und Php installiert nun möchte ich eine page damit online stellen, die z.b. ein registrierungsformular besitzt und diese daten dann in ne mysql datenbank eingibt. ist zum accounts machen für ein game. wenn ich nun jedoch auf absenden gehe kommt folgender error:



All times are GMT +2. The time now is 06:07.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.