jumpenjuhosaphat Posted April 25, 2007 Share Posted April 25, 2007 I know that it assigns array keys to values, but how about in this situation: if ( !($result = $db->sql_query($sql)) ) Could somebody explain what that does? Quote Link to comment https://forums.phpfreaks.com/topic/48617-solved-what-does-do/ Share on other sites More sharing options...
taith Posted April 25, 2007 Share Posted April 25, 2007 ->'s is for classes (most pointless idea in my mind... only useful for MASSIVE games, in which a spawner/AI is used) Quote Link to comment https://forums.phpfreaks.com/topic/48617-solved-what-does-do/#findComment-238054 Share on other sites More sharing options...
xenophobia Posted April 25, 2007 Share Posted April 25, 2007 On top of your script should have something similar to this statment: $db = new classname(); This create a class(classname) and assign to $db. So $db->sql_query(), is a function calling from the class. Quote Link to comment https://forums.phpfreaks.com/topic/48617-solved-what-does-do/#findComment-238065 Share on other sites More sharing options...
jumpenjuhosaphat Posted May 6, 2007 Author Share Posted May 6, 2007 Great, those were both good answers, thank you for clearing this up..... Quote Link to comment https://forums.phpfreaks.com/topic/48617-solved-what-does-do/#findComment-246521 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.