Jump to content

Getting Error On Creating Mysql Table Via Php


sgs

Recommended Posts

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...