Facemash i problem z bazą danych

0

Witam,

ściągnąłem jakiś czas temu skrypt Facemasha ( http://facemash.moefelt.dk/ ). W instrukcji czytam:

To get you going:

  1. upload all files to your website/testspace or whereever you wanna play with it.

  2. setup your database - look in the file: mysql.php

  3. 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),
    KEY winner (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 ;

  4. place all your images that's up for battle in the /images/ folder.

  5. run the /install_images.php from your site to install all images from your folder into your database.

  6. 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...

0

no przecież pisze wyraźnie - w katalogu images, tam gdzie masz wgrany skrypt a potem odpalić skrypt install_images.php

1 użytkowników online, w tym zalogowanych: 0, gości: 1