Jump to content

Recommended Posts

Posted

Sir, I've created a php file which creates a MySQL table named 'features' in the 'sgs_sgpaste' database. But when I'm running the php file to create the table, I'm getting an error. The error is:

Unable to create 'sgp_features' table:Table 'sgs_sgpaste.features' doesn't exist

So, I want to know that, why these error occures! And how I can solve the problem. Here is the url of the file: www.sgservices.tk/sgpaste/install/create_tables.php

Posted

Can you post the code of the file? Also ensure your MySQL username and password is correct, has the correct permissions, and you are connecting to localhost.

  • Like 1
Posted

Ok, these is the variables which are included in the "index.php" file to include other files easily

$cnf = "/home/sgs/config/" (directory)

$sgp = "/home/sgs/public_html/sgpaste/" (directory)

here is my three files:

1) http://www.pastebin.com/w6DYGxn7 (index.php: "connection.php" and "create_tables.php" file was included here)

2) http://www.pastebin.com/nwRt0sam (create_tables.php: this file was included in the "index.php" file)

3) http://www.pastebin.com/F9pMr3Jh (connection.php: these file was included in the "index.php" file)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...