Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | PHP | LIB_MIODB_PHP | mioDb_connect SEARCH    

  Functions
comma
copy
count
disk_file_list
disk_file_load
disk_file_save
disk_folder_copy
disk_folder_list
disk_folder_remove
explode
get_baseURL
get_currentPath
implode
mioDb_connect
mioDb_query
mioxml_getElement
mioxml_getElementArray
mioxml_getOuter
settingsSetSimpleValue
settingsStringToArray
settingsToArray
strlen
strpos
strrpos
strtolower
strtotime
strtoupper
str_decrypt
str_encrypt
str_posEx
str_replace
str_split
substr

  Libraries
miodb_lib.php
mio_wlib.php
stats_read.php
stats_write.php

Function
mioDb_connect

Language: PHP
Product: MioDB


Syntax

mioDb_connect(MenuID)


Parameters

IDMenuIDID of the menu item.


Return value

Returns a MySQL link identifier on success, or FALSE on failure.



Description

Opens or reuses a connection to a MySQL server.

The server name, user name and password are set in miodb_lib.php, so if one of the information changes, only one change in a library is necessary to have all your scripts updated.




PHP Sample Code

mioDb_connect();