$requestID = (isset($_GET['id'])) ? $_GET['id'] : 'add ID for POST';
Why do I keep getting an undefined index error even though var_dump() shows the index is defined?
By : Mikhail Karelov
Date : March 29 2020, 07:55 AM
This might help you Omar's answer is correct. For more detail, look at the documentation of fetchAll: PHP docs for fetchAll The skinny is that fetchAll returns an indexed array of all rows from your query, and each if those indexed arrays contains an associative array of keys and values. As a result, the data you want is stored in $studentFunds['studentFunds']