zanfranceschi Posted February 8, 2006 Share Posted February 8, 2006 I know it's a very simple question, but I couldn't find its answer in the PHP documentation. Search engines seem not to understand this string search...Could some one please explain what this symbol does? Or link me to a tutorial or something like this?The only thing I use this for is to retreive data from a dabatabe, for example: $query = "SELECT * FROM table";$exe = mysql_query($query);while($rows = mysql_fetch_object($exe)) {$id = $rows -> id;$name = $rows -> name;} Thanks. Link to comment Share on other sites More sharing options...
hacknsack Posted February 9, 2006 Share Posted February 9, 2006 Since you are using mysql_fetch_object that is how you have to access the "properties".Consider an object a "special array" that uses properties as it's index.So the -> takes the place of []http://www.tonymarston.net/php-mysql/databaseobjects.htmlMaybe that article will help. Link to comment Share on other sites More sharing options...
zanfranceschi Posted February 9, 2006 Author Share Posted February 9, 2006 mmm... thanks alot. I'll read the article. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now