
CREATE TABLE IF NOT EXISTS `word` (
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0;
if(isset($_POST['done']))
{
//Change to whatever your page is ofcourse. And we also view the amount of times.
$amount = mysql_query("SELECT COUNT(id) FROM word");
print 'Word sumbited '.$amount.' times.';
//Now this is what would be the query to insert it into the page if the word is whatever you want.
//For example we will submit the word "Bama"
//First check if word is Bama. This example is case sensitive.
if($_POST['done'] == "Bama")
{
//This might not work.....As the submit is NULL because the table I made
//Is just an ID.
mysql_query("INSERT INTO word () VALUES ()");
}
}
else
{
//Change the form to however you want.
print '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<input type="text" name="done" value="" />
<input type="submit" value="Submit" />
</form>";
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.