sunilvadranapu Posted February 4, 2008 Share Posted February 4, 2008 Hi, I want to write a class for database connection to mySQL. could any one help in sharing their ideas: my class is like this: variables: Host DB servername Database DB name User DB username Password DB password Connection_id holds the connection state(fail/success) Errno ErrorString Functions: ConnectDB (); queryDB(); fetchResult(); totRows(); conClose(); am i need to add any more methods Link to comment https://forums.phpfreaks.com/topic/89366-database-connection-class/ Share on other sites More sharing options...
sunilvadranapu Posted February 5, 2008 Author Share Posted February 5, 2008 is this desing for databse connection class is OK? or am i need to do any modifications to my desing? if any one already desinged and using any Database class, please share with me. -thanks in advance Link to comment https://forums.phpfreaks.com/topic/89366-database-connection-class/#findComment-458410 Share on other sites More sharing options...
fenway Posted February 5, 2008 Share Posted February 5, 2008 Aren't there literally tens of such classes around? Link to comment https://forums.phpfreaks.com/topic/89366-database-connection-class/#findComment-458630 Share on other sites More sharing options...
sunilvadranapu Posted February 5, 2008 Author Share Posted February 5, 2008 i could not figure it out. could you list them? or pls give me the link where i can find the stuff thanks Link to comment https://forums.phpfreaks.com/topic/89366-database-connection-class/#findComment-458673 Share on other sites More sharing options...
fenway Posted February 5, 2008 Share Posted February 5, 2008 i could not figure it out. could you list them? or pls give me the link where i can find the stuff thanks I've never worked with such things... perhaps someone else can chime in? Link to comment https://forums.phpfreaks.com/topic/89366-database-connection-class/#findComment-458756 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.