You are here: (yet another) DB Class... « PHP Programming Language « IT news, forums, messages
(yet another) DB Class...

Posted by otrWalter@gmail.com on 10/04/07 04:29

I'm rolling my own little DB class (pls, I don't need to hear about
how wonder this or that class is, thank you, I've reading over 2 dozen
such libaries) and I have a question to this group...

Workflow:
1) submit data form
2) pull data from POST
3) "clean" data
4) update record

Now, my question deals with step 3.

On one hand, the cleansing of the data needs to be done by the
developer.

On the other, would it be logical for the DB class to take a whack at
the data set and to make sure each field is the data type that the
database is expecting? Or should the developer code that as well?

Ideas?

walter

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация