Skip to content
Advertisement

getting the value of an object with php [closed]

i have a code that is supposed to get the number of rows in a database that contains the ip address of the current user, so i wrote a mysqli statement that gets every row that contains that ip address and stored it in a variable. When i printed out the variable it printed this:

JavaScript

how can i access the num_rows in the object. here is my code:

JavaScript

Advertisement

Answer

You can use the below code for getting the value num_rows in an object with PHP. I implemented the code used in the above code for getting value in the object.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement