Pagina 1 din 1

Report Post

Scris: 24-Feb-2007, 16:20:56
de megeo

Cod: Selectaţi tot

#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE phpbb_post_reports (
	report_id MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT ,
	post_id MEDIUMINT( 8 ) NOT NULL ,
	reporter_id MEDIUMINT( 8 ) NOT NULL ,
	report_status TINYINT( 1 ) DEFAULT '0' NOT NULL ,
	report_time INT( 11 ) DEFAULT '0' NOT NULL,
	report_comments TEXT,
	PRIMARY KEY ( report_id )
);

ALTER TABLE phpbb_users ADD user_report_optout TINYINT( 1 ) DEFAULT '0' NOT NULL ;

INSERT INTO phpbb_config ( config_name, config_value ) VALUES ('report_email', '1');
#
Am reusit sa descifrez pana la "report_comments TEXT," dar mai departe nu pricep ce si unde sa adaug...

Ma ajutati sa descifrez?

Scris: 24-Feb-2007, 16:34:14
de Etherfast
Hehe.
Nu trebuie sa executi instructiunile alea manual.
Intri cu phpMyAdmin in baza de date si cauti un buton mic si verde pe care scrie SQL.

Este un fel de command prompt pentru MySQL, si ce ai tu mai sus este comanda pe care trebuie sa o executi.

Simplu.

Scris: 24-Feb-2007, 16:41:25
de megeo
EDIT: am rezolvat. merge

Cod: Selectaţi tot

Error

SQL query:

CREATE TABLE phpbb_post_reports(
report_id MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT ,
post_id MEDIUMINT( 8 ) NOT NULL ,
reporter_id MEDIUMINT( 8 ) NOT NULL ,
report_status TINYINT( 1 ) DEFAULT '0' NOT NULL ,
report_time INT( 11 ) DEFAULT '0' NOT NULL ,
report_comments TEXT,
PRIMARY KEY ( report_id )

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8 
Ceva nu e bine, si eu nu am buton verde

http://i54.photobucket.com/albums/g118/ ... 111111.jpg

Scris: 24-Feb-2007, 17:02:30
de Sharakuza
pe partea stanga , nu pe coloana din dreapta , ci pe cea in care iti arata toata lista cu tabele (phpbb_ si ce mai ai tu pe acolo)

acolo se afla butonasu , unde ai dat tu , iti ruleaza comanda in interiorul altui tabel

Scris: 24-Feb-2007, 17:22:36
de megeo
dar important ii ca merge functia de report