Jump to content
php.lv forumi

[HELP]Problēma ievietojot Lietotāj datus datubāzē ..


millers

Recommended Posts

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 by millers
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...