I've got to mimic the approach taken by some preexisting code in the way I retrieve the results from a SELECT statement. Generally, I use PDO::FETCH_OBJ just because it's familiar and straight forward. In this instance, I'm using PDO::FETCH_ASSOC and I'm stuck.
I've got a recordset of 32 rows. Here's my code thus far:
$selectTerms=$conn->prepare("SELECT * from terms order by discipline, term");
for($x=0; $x<$selectTermsCount; $x++)
Right now I'm getting an error that says I've got an undefined offset. If I do this:
I get the first row repeated 32 times.
How do I need to code this thing so I get my rows documented correctly?