sean commented on a Page, Daily TVRage w/ Cache (+MySQL)  -  Jul 20, 2012

Not quite sure what this is exactly used for but just a few friendly notes after a quick glance.

1) I'd recommend looking into PDO or MySQLi at least.
2) You don't need single quotes around integers. (ie: $sheep[1] not $sheep['1'])
3) You could have your script determine if the tvrage table exists (if not create it)
4) You can extract

, and without running multiple regex's
5) It would be great if there were an API for this instead
6) You're missing a check after line 23 to ensure $data has populated
7) It would be better to assign "count($show) - 1" to a variable instead of repeated calculation
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.