Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15241

Re: PDO problem

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: PDO problem
Date 2015-04-11 20:17 -0400
Organization A noiseless patient Spider
Message-ID <mgcdhu$25i$1@dont-email.me> (permalink)
References <865189d4-1ef8-4aca-a619-13b59009061a@googlegroups.com> <mgccee$uq3$1@dont-email.me> <9d9db962-c7e7-4aa9-bbe8-e0f8a7a5619c@googlegroups.com>

Show all headers | View raw


On 4/11/2015 8:12 PM, Hiago Vitor wrote:
> Em sábado, 11 de abril de 2015 20:59:07 UTC-3, Jerry Stuckle  escreveu:
>> On 4/11/2015 7:18 PM, Hiago Vitor wrote:
>> <snip code>
>>
>>
>>> //PROBLEM----------------------------------------------
>>> It's appering this error, does anyone know why this is happening ?
>>>
>>> Fatal error: Call to undefined function getHost() in /opt/lampp/htdocs/testedb/db.php on line 70
>>>
>>>
>>
>> Maybe because there is no function getHost() (just a member function of
>> a couple of classes by that name)?
>>
> 
> what's the difference of function and member function?
> 

A member function is a function that is part of a class.  It must be
called with an object of that class (unless it's a static member
function - but don't worry about that right now) and is used to
set/retrieve information from that object.

My suggestion is for you to study up on object oriented programming; PHP
is going that way (although not very well).

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-11 16:18 -0700
  Re: PDO problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-11 19:58 -0400
    Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-11 17:12 -0700
      Re: PDO problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-11 20:17 -0400
        Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-11 17:24 -0700
        Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-11 17:26 -0700
  Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-12 06:01 -0700
    Re: PDO problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-12 12:40 -0400
      Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-12 10:03 -0700
        Re: PDO problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-12 16:34 -0400
          Re: PDO problem Hiago Vitor <hiagoiuri@gmail.com> - 2015-04-13 12:48 -0700

csiph-web