[thelist] Mysqli

Santilal Parbhu santilal at scorpioneng.co.nz
Thu Sep 19 15:35:21 CDT 2013


Hi

Thank you for the reply.  It was something so simple, yet I could not find
the answer anywhere on the net.  Thanks for the help.

Santilal

Santilal Parbhu
Scorpion Engineering Limited
PO Box 171
Alexandra
Phone: +64 3 440 2100
Mobile: +64 21 2655991
Email: santilal at scorpioneng.co.nz
Web: www.scorpioneng.co.nz
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Simon MacDonald
Sent: Thursday, 19 September 2013 11:32 p.m.
To: thelist at lists.evolt.org
Subject: Re: [thelist] Mysqli

Santilal,

It is a PHP object operator. PHP has two object operators.

The first, ->, is used when you want to call a method on an instance or
access an instance property.

The second, ::, is used when you want to call a static method, access a
static variable, or call a parent class's version of a method within a child
class.

Regards

Simon

Simon MacDonald
simonmacdonald at uk2.net

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Santilal Parbhu
Sent: 19 September 2013 11:35
To: thelist at lists.evolt.org
Subject: [thelist] Mysqli

Hi

 

I am novice web programmer.  Some years ago I developed an application which
I am going to update to PHP5 soon.  I was trying to catch up on developments
and I came upon the idea the mysqli is now the way to go.  However, I have
found that " -> " is used a lot and I think this was used in mysql too.
Here is a code snippet I got off the web.  Can anyone tell me what -> means
- I can't find it anywhere.   

 

E.g. 


while($row = mysqli_fetch_object($result)){

 

	
  echo $row->column;

 

Thanks.

 

Santilal

 

 

 

Santilal Parbhu

Scorpion Engineering Limited

PO Box 171

Alexandra

Phone: +64 3 440 2100

Mobile: +64 21 2655991

Email:  <mailto:santilal at scorpioneng.co.nz> santilal at scorpioneng.co.nz

Web:  <http://www.scorpioneng.co.nz> www.scorpioneng.co.nz

-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 



More information about the thelist mailing list