One last question so i can learn... what is this manipulation called?
id="' .$rid . '";
is it part of concatenation? i noticed there is a space before the second dot is that required? i would like to read about this in the docs if its there and learn how to read this properly, im sure i will run into this again.