Mr. Holmes Im assuming that you can add all the other database operations and the other dbtypes ... that was just the short version.
Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] ____________________________________ Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218 Bogotá - Colombia ____________________________________ - Soluciones web para Internet e Intranet - Soluciones para redes - Licenciamiento de Software - Asesoría y Soporte Técnico ____________________________________ -----Mensaje original----- De: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 07 de febrero de 2003 15:35 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Asunto: Re: [PHP] 3 tier web development >> //Class to handle ALL operations an ANY database You may want to change that... it only does 2 operations and it only does them for two databases... ---John Holmes... ----- Original Message ----- From: "Daniel Masson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 11:28 AM Subject: RE: [PHP] 3 tier web development About the database sigue .. i dont use ADOD or PEAR .. I use this: //Class to handle ALL operations an ANY database Class data_base ( //Predetermined value of attributes, you can safely override this when //do many instances of this class $dbtype = "mssql"; $duser = "user"; $dbname = "name"; $dbpass = "xxxxx"; function connect() { if ($this->dbtype == "mssql") { retrun function_to_connect_to_mssql($this->user, .... ); } elseif ($this->dbtype == "mysql") { retrun function_to_connect_to_mysql($this->user, .... ); } } function query() { if ($this->dbtype == "mssql") { retrun function_to_query_mssql($this->connection, .... ); } elseif ($this->dbtype == "mysql") { retrun function_to_query_mysql($this->connection, .... ); } } ); Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] ____________________________________ Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218 Bogotá - Colombia ____________________________________ - Soluciones web para Internet e Intranet - Soluciones para redes - Licenciamiento de Software - Asesoría y Soporte Técnico ____________________________________ -----Mensaje original----- De: Hardik Doshi [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 07 de febrero de 2003 10:50 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Asunto: RE: [PHP] 3 tier web development Hi Daniel, Thanks for your comments. What is the difference between PHP nuke and Smarty engine? Can we use PEAR or ADODB as database abstraction layer? Which one is the best on everyone's experience? thanks Hardik --- Daniel Masson <[EMAIL PROTECTED]> wrote: > Hardik: > > Maybe this can help: > > Im currently using PHP using MCV (Model Control > View) Methology, Model > is about libraries and classes like the business > rules of your > application, > Control has to do with the como control sentences > you must use like IF, > WHILE,FOREACH, ... , and View is the look and file > of the app , HTML, > IMAGES, ... > > Have a look on smarty http://smarty.php.net , and > there you can learn > how to use HTML and PHP > > And about the databse tier .. I use a class named > data_base .. with > attributes like: > > -dbtype > -dbhost > -dbuser > -dbpassword > > and the instances of the class can handle many > databases .. and > guarantee the portability .. > > I hope this helps. > > > Regards. > Daniel. > > > -----Mensaje original----- > De: Hardik Doshi [mailto:[EMAIL PROTECTED]] > Enviado el: viernes, 07 de febrero de 2003 10:24 > Para: [EMAIL PROTECTED] > Asunto: [PHP] 3 tier web development > > Hi Everyone, > > I am curious to know how one can develop 3-tier web > based applications using PHP, MySQL. Here Database > should be changed in future using database > abstraction > layer. Can anybody tell me in detail that how can i > build 3 tier flexible web application? > > More questions on this thread: > > 1. How one can seperate HTML and PHP (or any other > programming code). Is there anything in PHP so i > can > seperate Interface layer and programming logic > layer? > > 2. I know that we can use Database abstraction layer > so in future it is really easy to change database as > per need. Can any one tell me which database > abstraction layer is the best for future > applications. > > 3. There is lots of talk about CMS today. Does > anyone > know about PHP based CMS (PHP-Nuke?? i dont know)? > > Currently i am making 2 tier systems (HTML+PHP, > Database) I want to switch my applications to 3 tier > (HTML, php and database). Please give me enough > guidance. > > thanks > > Hardik > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php