When the videos are shown the path will be something like /videos.php?id=2 .
Now the problem I am pointing out is,
You are not checking whether an id exists or not , I think . Have not looked the code , but try something with a different id like this
http://localhost/videos.php?id=blahThe page itself is not loading . A die may be there , but need to load the page with some other videos . Am I right . Also dont know whether we can use class in smarty . Have not seen you using classes for connnecting to Mysql and all .
Also need to list some videos related to the category . I am little busy with my back papers. But when I back with in a few days I will try to implement these . Hope you too loved my suggestions .
If not, sorry

.
Hari K T
PHP Programmer
http://www.harikt.com