Djivar
AKA Wickedviruz
Can anyone help me, this is from http://otland.net/f118/releasing-auto-restart-ot-script-via-modern-aac-111124/ and i get errors. when i post this in my SQL :
I get this error:
Help?
- - - Updated - - -
Sorry for dubble post but i cant find where to Edit my old post, i also get this error :
When i add this:
under this
¨
So it's looks like this:
Code:
CREATE TABLE IF NOT EXISTS `z_shut` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`shutdown` INT(11) NOT NULL DEFAULT '1',
`long` INT(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
INSERT INTO `z_shut` (`id`, `shutdown`, `long`) VALUES
(1, 0, 1);
I get this error:
Code:
SQL query:
INSERT INTO `z_shut` ( `id` , `shutdown` , `long` )
VALUES ( 1, 0, 1 ) ;
MySQL said:
#1062 - Duplicate entry '1' for key 'PRIMARY'
Help?
- - - Updated - - -
Sorry for dubble post but i cant find where to Edit my old post, i also get this error :
Code:
Parse error: syntax error, unexpected 'else' (T_ELSE) in E:\xampp\htdocs\index.php on line 206
PHP:
$smarty->assign('admin', '[<a href="'.$website.'/index.php/p/v/restart">Restarter</a>]');
PHP:
if($ide->isAdmin())
$smarty->assign('admin', '[<a href="'.$website.'/index.php/admin">Administration</a>]');
So it's looks like this:
PHP:
if($ide->isAdmin())
$smarty->assign('admin', '[<a href="'.$website.'/index.php/admin">Administration</a>]');
$smarty->assign('admin', '[<a href="'.$website.'/index.php/p/v/restart">Restarter</a>]');
else
$smarty->assign('admin', '');