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'"

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]'

190 Like 24 Dislike
Previous php-forum Next php-forum
Other php-forum

help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.

What is ha

newbie error
what is wrong with this code ?

<html>
<body>

<?

Tracking Unique Clicks
Hi guys and gals,

Basically I have a database which tracks clicks on my outbound links, I do

Seperate team from score
I am writing a site that does a NFL Pick 'em type application and I have a feed that gives me the sc

PHP Thumbnail Creation
Ok so i use this function to create thumbnails:

Code: [Select]function createthumb($name,$fil

How do I use a global footer..?
If my index.php has a bole bunch of if functions and exit's in them

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:

Code

simple script won't work. Please help
I'm new to php, and I am having trouble displaying a simple script in my web browser. My php code ex

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