There is a php script, it creates a new line with data in the database, but the id of the new lines is 0. Can't figure out why?

$result2 = mysql_query("INSERT INTO `snonli`.`user` (`last_name`, `first_name`,`email`, `password`) VALUES ('$lastname', '$firstname', '$email', '$password');"); 
  • Show the script itself - RTK

1 answer 1

Perhaps when creating a table is not worth A_I

enter image description here

  • I'm trying to deliver, but it gives me: # 1075 - Incorrect table definition; it can be defined as a key - Sasha Gorin
  • Export table and skin - AimBot
  • yadi.sk/d/VWQSOfeS3VjoJ7 Should work - AimBot
  • Yes, it works, thanks) - Sasha Gorin