Tabele utworzyłem, jeszcze mam :
Kod:
$sql_array[] = "INSERT INTO " . $table_prefix . $table_4 . " (config_name, config_value) VALUES ('xs_show_news', '1');";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_4 . " (config_name, config_value) VALUES ('xs_show_ticker', '1');";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_4 . " (config_name, config_value) VALUES ('xs_news_dateformat', '0');";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_4 . " (config_name, config_value) VALUES ('xs_show_ticker_subtitle', '1');";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_4 . " (config_name, config_value) VALUES ('xs_show_news_subtitle', '1');";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_5 . " VALUES (1, 'BBC News UK Edition', 1, 'http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml', 1, '98%', '20', '0', '3', 0);";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_5 . " VALUES (2, 'Simple Text Test', 1, 'This is just some text I want to scroll, it could contain just about anything you like', 0, '98%', '20', '13', '3', 0);";
$sql_array[] = "INSERT INTO " . $table_prefix . $table_5 . " VALUES (3, 'Exchange', 1, 'http://rss.msexchange.org/allnews.xml', 1, '98%', '20', '0', '3', 0);";
za table musze wstawić $table_4 = 'xs_news_cfg'; i tak dalej. To mozecie mi napisać to jedno zapytania jak bedzie z tym prefixem !!
E-chomik.eu 