[thelist] Mysqli
Simon MacDonald
simonmacdonald at uk2.net
Thu Sep 19 06:31:43 CDT 2013
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 !
More information about the thelist
mailing list