Witam,
ściągnąłem jakiś czas temu skrypt Facemasha ( http://facemash.moefelt.dk/ ). W instrukcji czytam:
To get you going:
upload all files to your website/testspace or whereever you wanna play with it.
setup your database - look in the file: mysql.php
execute this SQL to setup your database tables:
CREATE TABLE IF NOT EXISTS
battles
(
battle_id
bigint(20) unsigned NOT NULL auto_increment,
winner
bigint(20) unsigned NOT NULL,
loser
bigint(20) unsigned NOT NULL,
PRIMARY KEY (battle_id
),
KEYwinner
(winner
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;CREATE TABLE IF NOT EXISTS
images
(
image_id
bigint(20) unsigned NOT NULL auto_increment,
filename
varchar(255) NOT NULL,
score
int(10) unsigned NOT NULL default '1500',
wins
int(10) unsigned NOT NULL default '0',
losses
int(10) unsigned NOT NULL default '0',
PRIMARY KEY (image_id
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;place all your images that's up for battle in the /images/ folder.
run the /install_images.php from your site to install all images from your folder into your database.
have fun!
Pierwsze 3 punkty wykonałem, wrzuciłem pliki na serwer, zrobiłem tabele w MyAdmin, a teraz chciałbym importować zdjęcia do tabeli "images" (punkt 4 instrukcji), ale niestety nie mam pojęcia jak się za to zabrać. Zdjęcia umieścić należy w bazie SQL czy na serwerze FTP?
Bardzo proszę o pomoc. Korzystam z hostingu 000webhost, ale z tego co widzę nie jest najlepszy...