Author Topic: Validation and listing some categories  (Read 1711 times)

0 Members and 1 Guest are viewing this topic.

Offline harikt

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
    • http://www.harikt.com
Validation and listing some categories
« on: February 24, 2009, 02:08:08 PM »
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=blah
The 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
« Last Edit: February 27, 2009, 05:08:51 PM by harikt »

Offline ben

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Validation and listing some categories
« Reply #1 on: February 26, 2009, 10:47:08 PM »
Sounds good to me.

I know now that I should have used more classes.

I am updating the submit stuff currently (Basically starting from scratch again)

Offline brad82

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Validation and listing some categories
« Reply #2 on: June 10, 2009, 12:34:41 PM »
Why would you need a class to connect to mysql?