phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
problem sql
Autor Wiadomość
mocny912
Czarna lista

Posty: 80
Wysłany: 08-10-2011, 19:41   problem sql

nie mogę dodać zapytania do sql, mody poinstalowane dobrze

Kod:
CREATE TABLE `phpbb_gifts` (
`id` INT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`img` TEXT NOT NULL ,
`name` VARCHAR( 150 ) NOT NULL,
`price` INT( 5 ) NOT NULL
) ENGINE = MYISAM ;


INSERT INTO `phpbb_gifts` (`id`, `img`, `name`, `price`) VALUES
(1, 'http://aux2.iconpedia.net/uploads/423673340524293488.png', 'Prezent', 50),
(2, 'http://aux2.iconpedia.net/uploads/475126871541930600.png', 'trucizna', 50),
(3, 'http://aux.iconpedia.net/uploads/14507952922077009227.png', 'Hamburger', 50),
(4, 'http://aux.iconpedia.net/uploads/1439391089101101563.png', 'Panda', 50),
(5, 'http://aux.iconpedia.net/uploads/19254157471797538462.png', 'Master Shifu', 50),
(6, 'http://aux3.iconpedia.net/uploads/5788473211935988560.png', 'Czekoladowe serce', 50),
(7, 'http://aux.iconpedia.net/uploads/21180829751415728016.png', 'Gwiazdki', 50),
(8, 'http://aux.iconpedia.net/uploads/144013514318879379.png', 'Ferrari', 50),
(9, 'http://aux.iconpedia.net/uploads/1205352872.png', 'Misiek', 50);

ALTER TABLE `phpbb_users` ADD `user_viewgifts` TINYINT( 1 ) NOT NULL DEFAULT '1' AFTER `user_last_privmsg`;

INSERT INTO `phpbb_config` (`config_name` ,`config_value`)VALUES ('gift_profiletime', '48');
INSERT INTO `phpbb_config` (`config_name` ,`config_value`)VALUES ('gift_cashname', 'user_');

CREATE TABLE IF NOT EXISTS `phpbb_user_gifts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_recipient` int(11) NOT NULL,
  `id_sender` int(11) NOT NULL,
  `id_gift` int(11) NOT NULL,
  `time` int(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;


oraz jeszcze drugiego
CREATE TABLE phpbb_newsfeeds (
      feed_id smallint(5) unsigned NOT NULL auto_increment,
      forum_id smallint(5) unsigned NOT NULL default '0',
      user_id mediumint(8) NOT NULL default '0',
      news_url varchar(255) NOT NULL default '',
      news_name varchar(60) default NULL,
      news_limit smallint(5) unsigned NOT NULL default '0',
      news_active tinyint(1) unsigned NOT NULL default '1',
      news_encoding varchar(16) binary NOT NULL default 'Detect',
      include_channel tinyint(1) unsigned NOT NULL default '1',
      include_image tinyint(1) unsigned NOT NULL default '1',
      topic_prefix varchar(60) default NULL,
      strip_topic tinyint(1) unsigned NOT NULL default '0',
      single_post tinyint(1) unsigned NOT NULL default '0',
      use_html tinyint(1) unsigned NOT NULL default '0',
      include_icon tinyint(1) unsigned NOT NULL default '1',
      include_title tinyint(1) unsigned NOT NULL default '1',
      include_description tinyint(1) unsigned NOT NULL default '1',
      include_details tinyint(1) unsigned NOT NULL default '1',
      include_content tinyint(1) unsigned NOT NULL default '0',
      include_readmore tinyint(1) unsigned NOT NULL default '1',
      is_podcast tinyint(1) unsigned NOT NULL default '0',
      strip_images tinyint(1) unsigned NOT NULL default '0',
      PRIMARY KEY  (feed_id),
      KEY forum_id (forum_id)
    );



problem sql

// używaj code, NineX.
_________________
mocny
Ostatnio zmieniony przez NineX 08-10-2011, 20:22, w całości zmieniany 1 raz  
 
     
Gadatliwa Kasia 

   
NineX



Pomógł: 546 razy
Posty: 1983
Wysłany: 08-10-2011, 20:23   

1. Popraw nazwę tematu.
2. Co zwraca mysql?
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,46 sekundy. Zapytań do SQL: 14
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

https://nabea.pl

• Zamów reklamę