In this [I-believe] famous loop condition
($row = $result->fetch()) (in which $result is a PDOStatement object) what is the type of the $row? Is it an "array" or an "array container"? Is there a difference between an array and a variable that holds an array?!
I ask this specially because if there wasn't any difference, then I should have been able to have my rows the whole in the $row variable after the loop is done, which is not the case, and I need another array to hold each row for me(the syntax is also different and I need empty brackets in front of the name of that array to add elements)
(According to my tutorial, fetch() is a method of the PDOStatement object that returns the next row of my table as an array).
$rowis a run-time array variable which is created each time when loop runs so previous values will not be available. that's why you want to save it's data to another array variablefetchAll()FALSE. On success it returnsTRUE, an array or an object, depending on the value of its first argument ($fetch_style). If your tutorial doesn't say this then you have to find a better one. And, no matter what tutorial do you use, always search for the answers in the documentation first.