Mysql error message


Posted on 16th Feb 2014 07:03 pm by admin

help me find out what this error message means:

"Duplicate entry '0' for key 'PRIMARY'"

Did you know?Explore Trending and Topic pages for more stories like this.
the sql for it is
Code: INSERT INTO accounts (firstname, lastname, username, password, joined, email, level) VALUES ('$_POST[fname]','$_POST[lname]','$_POST[user]',sha1('$_POST[pass]'),'$date','$_POST[email]','norm')";
$sqlcheck= mysql_query("SELECT * FROM accounts WHERE username = '$_POST[user]' OR email = '$_POST[email]'
No comments posted yet

Your Answer:

Login to answer
190 Like 24 Dislike
Previous forums Next forums
Other forums

Query issues
I probably have this setup wrong well I know I do because nothing is showing up now. What I want is

do while...woes
I'm sure this is childsplay but it is stumping me, everytime i try what I think would make this work

This must be easy , pulling the last record of the day, every day, from a txt
I have a txt file logging weather data every minutes (so 1 record per minute). I want to extract the

PHP onsubmit in the form not going to the fuction.
I have a form through ‘onsubmit’ calling a function validation(). But not going to the

Time-based image rotation script
I'm trying to write a PHP script that rotates an image based on what time of day it is. I want the

$get problem
Hi Guys ...

can you please tell me what i am doing wrong here
Code: <?php

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

Need help in log in and log out?
hi there all of u. i have recently created a site for someone. i have placed log in and log out and

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash