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
https://forums.phpfreaks.com/topic/64936-mysql-help-table-categories-doesnt-exist/
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;

 

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.

Archived

This topic is now archived and is closed to further replies.

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