Ich habe da jetzt mal so angefangen:
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$sql = 'CREATE TABLE meinetabelle (spaltenname VARCHAR(255));';
$result = $db->sql_query($sql);
Wie kann ich mit phpbb prüfen, ob die Tabelle, die ich anlegen möchte, schon da ist. Also in etwa so:
Code: Alles auswählen
if (tabele da)
{
weiter ohne was zu machen
}
else
{
ist nicht da also anlegen
}