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 ); $db_select = @ mysql_select_db ( $db_name ); $sql = 'SELECT * FROM `selfphp_funktionen`'; $result = mysql_query ( $sql ); $menge = mysql_num_rows ( $result ); echo '<b>' . $menge . ' Datensätze gefunden</b><br>'; while ( $row = mysql_fetch_row ( $result ) ) { echo $row[1] . ' - ' . $row[2] . '<br><br>'; } ?>
4 Datensätze gefunden Array-Funktionen - array_count_values Variablen-Funktionen - is_double Verzeichnis-Funktionen - chdir Mail-Funktionen - mail