ho modificato il database prendendo una tabella di log search da un altro script e questo sarebbe il dump del database attuale:

-- phpMyAdmin SQL Dump
-- version 2.11.9.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 14 Mag, 2009 at 10:14 AM
-- Versione MySQL: 5.0.67
-- Versione PHP: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `adultawi_wordtracker`
--

-- --------------------------------------------------------

--
-- Struttura della tabella `sg_log_search`
--

CREATE TABLE IF NOT EXISTS `sg_log_search` (
`what` char(1) NOT NULL default '',
`word` varchar(255) NOT NULL default '',
`count` int(10) unsigned NOT NULL default '0',
`n` int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (`n`),
KEY `what` (`what`),
KEY `word` (`word`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dump dei dati per la tabella `sg_log_search`
--


la stringhe nello script sono impostate cosi:

$nomeTabella="sg_log_search";
$nomeCampo="word";

gli altri campi li ignoro