Home | Online Examples | Documentation | Forum | Page of Project | Download

TPLN Manual

DB functions

ParseDBRow
ParseDBField
DbConnect
ChangeConnection
DbClose
DoQuery
GetRowsCount
DBFetchArray
DBFetchAssoc
DBFreeResult
GetOne
GetNumFields
GetFields
GetFieldName
GetDBList
GetTableList

 

DbConnect

void DbConnect([string $db_type], [string $host], [string $login], [string $password], [string $base], [string $port])

The DbConnect() function serves to connect in your MySQL data base.

$db_type takes one of the following values:
  • mysql -> MySQL
  • pgsql -> PostgreSQL
  • ibase -> InterBase
  • msql -> Mini SQL
  • mssql -> Microsoft SQL Server
  • oci8 -> Oracle 7/8/8i
  • odbc -> ODBC (Open Database Connectivity)
  • sybase -> SyBase
  • ifx -> Informix
  • fbsql -> FrontBase


Attention !
If an argument is not specified the function then will take the values definite in the TPLN_Cfg.php file.
TopTop