millers Posted March 3, 2010 Report Share Posted March 3, 2010 (edited) Sveiki šodien saskāros ar problēmu izveidoju nelielu php skriptu kas reģistrē lietotājus un ievieto viņu datus datubāzē ,bet saskāros ar problēmu kad meiģināju reģistrēt lietotāju php skripts itkā strādā lieliski ,bet nez kapēc dati netiek ievietoti datubāzē Lūk php scripts(kods): http://paste.php.lv/01cb3f4a6483270639b913d3cf574a0d?lang=php Lūk pati datubāze : -- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 03, 2010 at 02:48 PM -- Server version: 5.1.43 -- PHP Version: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `abilityweb` -- -- -------------------------------------------------------- -- -- Table structure for table `lietotaji` -- CREATE TABLE IF NOT EXISTS `lietotaji` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nick` varchar(255) COLLATE utf8_latvian_ci NOT NULL, `parole` varchar(32) COLLATE utf8_latvian_ci NOT NULL, `epasts` varchar(255) COLLATE utf8_latvian_ci NOT NULL, `tips` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `lietotaji` -- INSERT INTO `lietotaji` (`id`, `nick`, `parole`, `epasts`, `tips`) VALUES (1, '######', '9aa33b5baf1ca45000e78c969edd0065', '#########@inbox.lv', 1); Nespēju atrast problēmu un atvainojos par to ja nespēju izskaidrot problēmu ceru kad sapratīsiet . Edit : Field 'epasts' doesn't have a default value Laikam sapratu .. Edited March 3, 2010 by millers Quote Link to comment Share on other sites More sharing options...
2easy Posted March 3, 2010 Report Share Posted March 3, 2010 (edited) mysql_error() Edited March 3, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
Kemito Posted March 3, 2010 Report Share Posted March 3, 2010 nav defaultā vērtība e-pastam, pēc tevis dotā edit! Quote Link to comment Share on other sites More sharing options...
2easy Posted March 3, 2010 Report Share Posted March 3, 2010 +1 Kemito ^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.