Parašė mXt· 2008 Vas. 20 19:02:37
#7
<?php
$vardas = "vartotojo_vardas";
$slaptazodis = "vartotojo slaptazodis";
$hostas = "mysql hostas";
$db = "prefixas";
$jungtis = mysql_connect("$hostas", "$vardas", "$slaptazodis") or
die(mysql_error());
mysql_select_db($db);
CREATE TABLE `parama` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dt` datetime NOT NULL,
`tonr` varchar(45) NOT NULL,
`txt` varchar(255) NOT NULL,
`phone` varchar(45) NOT NULL,
`operator` varchar(15) NOT NULL,
`amount` float(5,2) unsigned NOT NULL,
`word` varchar(45) NOT NULL,
`uid` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `tonr` (`tonr`),
KEY `phone` (`phone`),
KEY `word` (`word`),
KEY `amount` (`amount`),
KEY `uid` (`uid`),
KEY `dt` (`dt`)
) ENGINE=MyISAM;
mysql_query($sql, $jungtis);
echo "Lentele sukurta";
?>
Pabandyk per pridetinius ivykdyti sita koda. Tik paspausk perziureti. neissaugok.
Redagavo mXt· 2008 Vas. 20 19:02:45