Thanks, Maroon. I missed a typo with the variable, that's why it wasn't working. It's now working perfectly. Thank you both. I truly appreciate it.
Just one last question... how can I delete a post on here? As this thread was initially a post on the $read function and a few days later I needed a hints system and wasn't getting any, I made a new forum post just hints oriented. Now that I have found a solution, how can I delete that other post? I can't locate a delete button.