Rommeo Posted December 11, 2011 Share Posted December 11, 2011 Let's say my user_table has following fields; username name surname country but I'm just inserting to one field and skipping the rest: $query = "insert into user_table ( username ) VALUES ( $username) "; mysql_query($query); Does inserting data like this cause any unwanted problems ? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted December 11, 2011 Share Posted December 11, 2011 It shouldn't, but your table should have default values, such as null. Quote Link to comment Share on other sites More sharing options...
Rommeo Posted December 11, 2011 Author Share Posted December 11, 2011 It shouldn't, but your table should have default values, such as null. if my table does not have default or null values ? what kind of problem would I face ? Quote Link to comment Share on other sites More sharing options...
fenway Posted December 12, 2011 Share Posted December 12, 2011 Depends if you're running in strict mode or not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.