Jump to content

mysql help Table '*****.categories' doesn't exist


spleblem

Recommended Posts

hey all thanks for reading

i have purchased this game website script and im having a bit of trouble setting it up

i receive this error

 

Table 'spleblem_games3.categories' doesn't exist

 

im not sure why the .categories is there as the tables name is just spleblem_games3

 

 

thanks in advance for any help.

 

Link to comment
Share on other sites

atleast you need to post ur new.php code

 

and make sure that database names and table names are matched.

 

these are the couple of statements ,can help u

// to ge the databases list, check whether spleblem_games3 exist or not

>show databases;

if it is there then

>use spleblem_games3;

to ge the lst of tables in the database

>show tables;

 

Link to comment
Share on other sites

right here is the new.php script

<?php
include "../conn.php";
session_start(); 
if(!isset($_SESSION['username'])  &&    !isset($_SESSION['password'])){
header("Refresh: 5;url=index.php");  
echo "You are not logon password is required to access this file...";
exit;
}


$sql = "select * from categories order by cName";
$rec=mysql_query($sql,$db) or die(mysql_error());
$datas = mysql_fetch_array($rec);

do{
$cats .= "<option value='$datas[cId]'>$datas[cName]</option>";
}while($datas = mysql_fetch_array($rec));

$displaytxt = "<form method ='post' action='savenewgame.php' enctype='multipart/form-data'>
Category List :
<select name='category'>$cats</select><br>
Game Title : <input type = 'text' name='gametitle' size='30'><br>
Game Description <br>
<textarea name='description' rows='12' cols='60'></textarea><br>
Thumbnail : <input type='file'  name='gamepic' size='20'> <br>
Game            : 
<input type='file'  name='gamefile' size='20'>
<p> 
<input type='submit' value='Add this game' name ='submit'>

<br>
</p>
</form>";

include "template.php";
?>

 

hope this can help you help me.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.