Tabelle selfphp_funktionen ---------------------------------------------------------------------- | id | gruppe | befehl | version | ---------------------------------------------------------------------- | 1 | Array-Funktionen | array_count_values| (PHP 4 >= 4.0b4) | ---------------------------------------------------------------------- | 2 | Variablen-Funktionen | is_double | (PHP 3) | ---------------------------------------------------------------------- | 3 | Verzeichnis-Funktionen | chdir | (PHP 3, PHP 4) | ---------------------------------------------------------------------- | 4 | Mail-Funktionen | mail | (PHP 3. PHP 4) | ----------------------------------------------------------------------
<?PHP /* Datenbankserver - In der Regel die IP */ $db_server = 'localhost'; /* Datenbankname */ $db_name = 'selfphp'; /* Datenbankuser */ $db_user = 'root'; /* Datenbankpasswort */ $db_passwort = 'mega'; /* Erstellt Connect zu Datenbank her */ $db = @ mysql_connect ( $db_server, $db_user, $db_passwort ); mysql_select_db ( 'selfphp', $db ); $sql = 'SELECT * FROM `selfphp_funktionen`'; $result = mysql_query ( $sql ); while ( $row = mysql_fetch_row ( $result ) ) { echo $row[0] . ' - ' . $row[1] . ' - ' . $row[2] . ' - ' . $row[3] . '<br>'; } ?>
1 - Array-Funktionen - array_count_values - (PHP 4 >= 4.0b4) 2 - Variablen-Funktionen - is_double - (PHP 3) 3 - Verzeichnis-Funktionen - chdir - (PHP 3, PHP 4) 4 - Mail-Funktionen - mail - (PHP 3, PHP 4)