SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Sean101's Avatar
    Join Date
    Aug 2011
    Location
    Scotland, UK
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Uploaded A Topsites Script To My Forum & Dont Understand This Part..

    Hey..
    I just uploaded a topsites script to my forum, some of it worked, but its not showing correctly.
    My Forum Home Page: http://www.xboxlivefan.org/
    My Forum TopSites Page: http://partnerforums.xboxlivefan.org/
    TopSites Script I Used: http://www.webestools.com/scripts_tu...-web-site.html

    I read the instructions in the file i download the script in.
    It says..

    To use this system, you must create a "topsite" table in your database.
    This is the query to execute:

    --
    -- Table structure for table `topsite`
    --

    CREATE TABLE `topsite` (
    `id` int(11) NOT NULL,
    `name` varchar(55) NOT NULL,
    `url` varchar(255) NOT NULL,
    `description` varchar(255) NOT NULL,
    `banner` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `votes` int(11) NOT NULL,
    `status` varchar(2) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

    Then, you have to edit the config.php file by using the right values in the variables.
    How do i create a table in my database?
    Can you please also tell me what it means when it say i have to edit the config.php file by using the right values in the variables?
    It you could it would be appreciated..
    ... Thanks:P

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Greenville, South Carolina, United States
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By running the code you've provided (the SQL), that will create a table for you. Note, you should run the code in PHPmyAdmin.

    As per the config file, in most cases, it'll require you edit it to contain your DB's info (password, db name, host, etc...) The config file should have comments and documentation of what it needs exactly.
    Phase 8 Facebook Applications and Web Development

  3. #3
    SitePoint Enthusiast Sean101's Avatar
    Join Date
    Aug 2011
    Location
    Scotland, UK
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Ok, thanks for your help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •