Writng a non-database specific code in PHP
-
Hello guys; I am from .NET background where I write data access code to any database platform using the DbFactory and the like. I need a sample code that can connect to any database that all i need to supply is the database provider name, database name, user name, password, etc. Thank you for your understanding and support.
-
Hello guys; I am from .NET background where I write data access code to any database platform using the DbFactory and the like. I need a sample code that can connect to any database that all i need to supply is the database provider name, database name, user name, password, etc. Thank you for your understanding and support.
PHP Manual >> Function Reference >> >> Database Extensions >> >> >> Abstraction Layers Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
Hello guys; I am from .NET background where I write data access code to any database platform using the DbFactory and the like. I need a sample code that can connect to any database that all i need to supply is the database provider name, database name, user name, password, etc. Thank you for your understanding and support.
-
PHP Manual >> Function Reference >> >> Database Extensions >> >> >> Abstraction Layers Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
Thank u Peter.
-
hi , if you want to connect to the Mysql database you can use the below code to connect and select your database
";
mysql_select_db("test") or die(mysql_error());
echo "Connected to Database";
?>I truly appreciate your response.