pdcelec Posted July 25, 2011 Posted July 25, 2011 I have been installing and looking at various contributions and have found that there appears to be 2 styles of coding certain areas. What is the difference in the following 2 statements and is there any speed increase in using one or the other. Thanks in advance if (isset($_GET['manufacturers_id'])) { if (isset($_GET->manufacturers_id)) { My own thoughts are that they are different versions of mySql but can this be confirmed / other?
germ Posted July 25, 2011 Posted July 25, 2011 "->" is the php object operator used with classes and objects. It has nothing to do with MYSQL version. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
pdcelec Posted July 25, 2011 Author Posted July 25, 2011 "->" is the php object operator used with classes and objects. It has nothing to do with MYSQL version. Thanks for that. I have changed a few of the ['field'] to ->field and it appears to be slightly quicker (and more uniform with other programming techniques). Still a lot to learn but getting there slowly ps I should have studied this instead of electrical engineering - much more fun
Recommended Posts
Archived
This topic is now archived and is closed to further replies.