Thread subject: muscapaul's PHP-Fusion website :: Missing table

Posted by muscapaul on 03-11-2006 15:30
#6

Can you paste this code in a new custom page, give it a provisional title and hit preview?
If there is any error message (either after you hit preview or when trying to use the infusion), please report it here.
Make certain you put in the right locale term for $locale['term204'] below and, if necessary, translate $locale['term605'].
Code
<?php
$result = dbquery("CREATE TABLE ".$db_prefix."term_settings (
  term_org varchar(100) NOT NULL default '',
  term_to varchar(100) NOT NULL default '',
  term_ratings tinyint(1) NOT NULL default '',
  term_usergroup tinyint(3) NOT NULL default '',
  term_type tinyint(1) NOT NULL default ''
) TYPE=MyISAM;");
if (!$result) $fail = "error one";
echo $fail;

$locale['term204'] = "one"; //replace 'one' for 'Term' (Glossary), 'Word' (Dictionary), 'Term/Word' (Default) or the translation into your language
$locale['term605'] = "Please, set Target Language in Dictionary - General Settings]"; //or replace for the translation into your language
$result = dbquery("INSERT INTO ".$db_prefix."term_settings (term_org, term_to, term_ratings, term_usergroup, term_type) VALUES ('".$locale['term204']."', '".$locale['term605']."', '0', '103', '2')");
   if (!$result) $fails = "error two";
echo $fails;
?>




Notice: Undefined index: post_edituser in /home/muscapal/public_html/print.php on line 147
Edited by muscapaul on 03-11-2006 15:30