473,395 Members | 1,688 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,395 software developers and data experts.

Am I using the right version of php?

97 64KB
I made a website using some of the old MySQL commands to interact with a database such as mysql_connect, but I had loads of trouble with it so I tried to use the improved version with the site I'm currently building now. Problem is that the new commands such as mysqli::real_connect won't work either.

I keep getting this error message:

Non-static method mysqli::real_connect() cannot be called statically in "...FileName..."

I'm using Instant WordPress as my Apache server and I checked the php version and got a result of 5.4.36. I'm not sure if that's compatible with the improved php commands, but if it is then there must be something wrong with my code. Can someone tell me when the improved commands came into use? Or how to call the new methods non-statically?
Jun 2 '15 #1

✓ answered by Dormilich

see http://php.net/manual/en/mysqli.real-connect.php for an example how to use this method.

btw. this has nothing to do with your PHP version.

1 1344
Dormilich
8,658 Expert Mod 8TB
see http://php.net/manual/en/mysqli.real-connect.php for an example how to use this method.

btw. this has nothing to do with your PHP version.
Jun 3 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Phil Powell | last post by:
class NicknameVerifier { function NicknameVerifier() {} function isValid() { if ($fileID) { $content = fread($fileID, HTMLRetriever::MAX_URL_SIZE); fclose($fileID); if ($content)...
6
by: BR | last post by:
Is there a way to tell what exe is using which version of a .dll in the gac?
26
by: blah | last post by:
ok, i m going to use Linux for my Python Programs, mainly because i need to see what will these fork() and exec() do. So, can anyone tell me which flavour of linux i should use, some say that...
3
by: hrishy | last post by:
Hi Folks and fellow IBMers I received a toolbox CD from IBM with DB2 version 8.1 when i installed it on linux and was trying ton create a instance it always failed saying that the instance...
0
by: Kaush | last post by:
Hi all, I am implementing a web service server to accept SOAP messages from my client and send a SOAP response back. Actually I am using .NET's WSE-2 for receiving and sending SOAP messages. The...
8
by: ronen.chen | last post by:
I noticed that some sites use <script src='fineName.js?ver=XXX'></script(even google) Someone told me that it's for script changes, means - if the file in server has been changed than the new XXX...
0
by: Sedge | last post by:
Hi, Im writing a program! from a java timing prog. an excel sheet is spat out, with information to make a graph. what i dont know is how to put a pause between the sheets so u can see the graph. im...
0
by: WendyYap | last post by:
When I try to play online game this console appear:Java Plug-in 10.5.0.06 Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM User home directory = C:\Users\user...
1
by: Amjad Hussein | last post by:
Hi Guys I am working in making Access VBA code which needs another software, so first I need to check if this software is installed in the PC or not before I implement my codes. I found one way...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.