Here is the code for another file called blog.php which is the same directory as admin. Reputation: 466 Posts: 1,991 Joined: 30-April 10 Re: Call to undefined method dbConnection::query() - How to fix it? Thanks 0 Back to top MultiQuote Reply #2 Code11 Member Group: Members Posts: 10 Joined: 14-April 08 Posted 20 March 2010 - 03:02 PM Code11, on 20 March 2010 - then look at the mysql details.

links) point to that directory. function __construct(){ include_once('dbConnection.php"); $this->db = new dbConnection(); $this->db->connect(); } share|improve this answer answered Mar 14 '13 at 8:55 Praveen kalal 1,74821228 add a comment| up vote 0 down vote Looks like Anyway, after another fresh install of rh 8 , with mysql and php. This post has been edited by Dormilich: 16 March 2013 - 03:59 AM Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #5 aldherl New D.I.C Head

MySQLi-> OOP connection: $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); Procedural: $link = mysqli_connect("localhost", "my_user", "my_password", "world"); PDO-> OOP connection: $conn = new PDO("mysql:host=localhost;dbname=database;","root",""); Was This Post Helpful? 0 Back to news You may have to register before you can post: click the register link above to proceed. if you know of a 'better' solution it would be nice if you posted it. this is all a bit weird...

production application). Have you completed the interview? pro-grammarForum Rules | Forum GuidelinesLinkedIn Back to top Back to PHP Coding Help · Next Unread Topic → 0 user(s) are reading this topic 0 members, 0 guests, 0 anonymous users have a peek at these guys I am positive my php code is not the problem, as i have tried various bits of php code all using mysql_connect() and all return that same error.

Yes, my password is: Forgot your password? Posted 15 March 2013 - 10:38 AM You have to make sure you are connecting with the one you choose. can someone help me with some sort of workaround or with what should I ask my hosting provider for?

I am having problems with my site that I am developing.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed ONCE, that's it. Any idea why the require_once was not working in the code for me ?? Browse other questions tagged php mysql oop pdo or ask your own question.

Reference Sheets Code Snippets C Snippets C++ Snippets Java Snippets Visual Basic Snippets C# Snippets VB.NET Snippets ASP.NET Snippets PHP Snippets Python Snippets Ruby Snippets ColdFusion Snippets SQL Snippets Assembly Snippets You can do something along these lines: Place this at the top of each page (do not add to files that are included) change the value of $root to resolve to the real error comes here... if (λ x .

I'm trying to build a simple blog and I want to create an admin section. How to add non-latin entries in hosts file Where's the 0xBEEF? asked 2 years ago viewed 491 times active 7 months ago Related 7Is it possible in PHP to prevent “Fatal error: Call to undefined function”?0PHP tries to call function without any For the moment, I'm connecting to the database again in the admin file, but I supose that's not a solution.

Hi, This is driving me crazy! But, when I put it in to a free host, there are a lot of errors. I have just finished a rewrite (version 2.0) of my security scripts, and I would be happy to let you use them and give me some feedback.