Jump to content
MakeWebGames

Recommended Posts

Posted

i fell pretty stupid right now.... i got this after i filled in the info d=for the installer.php---->>>>

QUERY ERROR: Table 'announcements' already exists

Query was CREATE TABLE `announcements` ( `a_text` text NOT NULL, `a_time` int(11) NOT NULL default '0') ENGINE=MyISAM ;

how do i fix??? ?( ?(

 

Posted
i fell pretty stupid right now.... i got this after i filled in the info d=for the installer.php---->>>>

QUERY ERROR: Table 'announcements' already exists

Query was CREATE TABLE `announcements` ( `a_text` text NOT NULL, `a_time` int(11) NOT NULL default '0') ENGINE=MyISAM ;

how do i fix??? ?( ?(

 

They already exist so delete them. I assume this is due to a failed run of the installer.php before hand...

Posted
I delete the announcements.php totally and i still have it

Don't clear one table that the installer created, clear them ALL and then run again. That is as long as there’s nothing you need to backup. since this is your 1st install that should not be an issue.

Posted

Did as you said got this

 

Installer

1. Diagnostics >> 2. Configuration >> 3. Installation & Extras

Write Config...

Config written.

Attempting DB connection

Connection Successful.

Writing Main MySQL data.

QUERY ERROR: Table 'announcements' already exists

Query was CREATE TABLE `announcements` ( `a_text` text NOT NULL, `a_time` int(11) NOT NULL default '0') ENGINE=

Posted

This is my coding for announcements ----------------------------------->

 

<?php

include "globals.php";

$ac=$ir['new_announcements'];

$q=$db->query("SELECT * FROM announcements ORDER BY a_time DESC");

print "<table width='80%' cellspacing='1' class='table'>

<tr>

<th>Time</th>

<th>Announcement</th>

</tr>";

while($r=$db->fetch_row($q))

{

if($ac > 0)

{

$ac--;

$new="

New!";

}

else

{

$new="";

}

print "<tr><td valign=top>".date('F j Y, g:i:s a', $r['a_time']).$new."</td><td valign=top>{$r['a_text']}</td></tr>";

}

print "</table>";

if($ir['new_announcements'])

{

$db->query("UPDATE users SET new_announcements=0 WHERE userid={$userid}");

}

$h->endpage();

?>

Posted

So should i just drop them all then run installer again???

 

Export

Tables:

All / None

Export: Structure

Data

Options: Compact inserts

Complete inserts

If you are exporting a large number of rows, it is recommended that you output the results to a text file.

Output to: Browser

Text file:

Posted

not being a dick or anything, but you have no idea even how to drop a dbtable, and can't tell the difference between a php file, and a db table, yet you are trying to build a game?

I suggest you go learn more about PHP, and MySQL before you start trying to build a game.

Here's a good site: w3schools.com

Posted

@Kieran-R - Not as if you have not asked for help before, and he is in fact putting time into reading a fair few pages that people gave him in chat so it's not like he is not trying at this point. Everyone starts somewhere.

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