Welcome Guest, Not a member yet? Register   Sign In
I can't make a news system
#8

(This post was last modified: 11-05-2017, 09:16 PM by JeffreyB. Edit Reason: trying to add clarity )

As the man said - you have sql in your php files.

Remove this chunk:


Code:
CREATE TABLE news (
        id int(11) NOT NULL AUTO_INCREMENT,
        title varchar(128) NOT NULL,
        slug varchar(128) NOT NULL,
        text text NOT NULL,
        PRIMARY KEY (id),
        KEY slug (slug)
);

Hopefully I got the right stuff for you to dump. Run your files again. See if you get a different error message. Theoretically, you already have a database table because you ran the code like this once already someplace else -- maybe. In any event, that code should be used in your database management and is a one-time deal, creating your database table that will forever and ever be used by the rest of your code. How THAT database and the table within is managed depends on where you are hosted. If you are localhost, open your wamp. xampp whatever and look at your tables. If you are indeed already there and have it, go to work on the next issues. Best I can do since I don't really know too much but I was looking at other posts and thought I might try to help.
Reply


Messages In This Thread
I can't make a news system - by Fayga - 10-14-2017, 06:02 PM
RE: I can't make a news system - by Fayga - 10-15-2017, 05:20 AM
RE: I can't make a news system - by ciadmin - 10-15-2017, 07:30 AM
RE: I can't make a news system - by Fayga - 10-15-2017, 12:48 PM
RE: I can't make a news system - by Fayga - 10-17-2017, 01:45 PM
RE: I can't make a news system - by zurtri - 10-17-2017, 03:23 PM
RE: I can't make a news system - by JeffreyB - 11-05-2017, 08:48 PM
RE: I can't make a news system - by ChicagoPhil - 11-05-2017, 09:38 PM
RE: I can't make a news system - by JeffreyB - 11-05-2017, 09:57 PM
RE: I can't make a news system - by ChicagoPhil - 11-05-2017, 10:48 PM
RE: I can't make a news system - by JeffreyB - 11-05-2017, 11:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB