I am doing a long poll and so I want to shut off my connection to the database on every loop (about 1 minute loops).
I used to use mysql_close($con), so what do I use in PDO?
Also, when I was using mysql_query it seemed to return numbers as string, so when I returned them to my calling js via json it was still a string. But now, the PDO seems to actually return it as a number. Is this right?