Hi Claire,
Thanks for replying! I added both var-dumps (separately) and both displayed the same data (the variable $readr name). However, I did notice the length of each string was one more than the actual string; e.g., string(10) "Bill Hull" showed a length of 10 even though it is only 9 characters in length. Using the trim, ltrim or rtrim made no difference. Is there a 'hidden' character when using htmlencode($record['reader']) -- specifically the htmlencode -- when retrieving the field from the table using foreach($scheduledRecords as $record); specifically at the beginning? I'm guessing not because when I just used $record['reader'] it still made no difference.
I've even tried looping through the 'readers' table and when the variable is used it still does not 'see' the contents. BUT when I hardcode the name instead of using the variable, it works every time. Funny thing is, the mysql code is used in other modules and it works fine! If I ONLY use the mysql statement and assign a variable ($readr = 'Bill Hull'), it works so I'm thinking it has something to do with the foreach process when extracting the record from the table using the foreach clause.
Server Info:
PHP Version: PHP v5.3.24
Database Server: MySQL v5.0.96
I appreciate your time and thank you in advance for ANY suggestions.
Eric