php - MYSQL : Two tables "Signup" and "Login" ? Is it good to make them a single table or keep them two different Table -


two tables "signup" , "login" ?

  • signup -> id,fname, lname, gender
  • login -> id,email, username, password

in php need interact login table. during sign through php have use 2 insert queries insert both tables.

i want reduce number of queries , want optimize database.

i make signup+login = single table .... idea, when login, have interact large single table

it idea if there one-to-one mapping of login , signup information. better performance 1 id lookup. maybe "users" table?

on sidenote, hope "password" not clear text password field , instead hash of password. should never have clear text passwords stored anywhere.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -