scarlson Posted December 9, 2007 Share Posted December 9, 2007 Is it possible to just do an UPDATE when entering data into a mySQL database? Does mySQL care if you do an UPDATE only or do you have to use INSERT INTO. Scott Link to comment https://forums.phpfreaks.com/topic/80831-solved-quick-question-about-php-and-updating-or-inserting-data/ Share on other sites More sharing options...
phpQuestioner Posted December 9, 2007 Share Posted December 9, 2007 you can just do an update by itself. Link to comment https://forums.phpfreaks.com/topic/80831-solved-quick-question-about-php-and-updating-or-inserting-data/#findComment-410065 Share on other sites More sharing options...
scarlson Posted December 9, 2007 Author Share Posted December 9, 2007 Thanks, I figured that would work just fine but wasn't sure if there was a downfall as to not using INSERT INTO Link to comment https://forums.phpfreaks.com/topic/80831-solved-quick-question-about-php-and-updating-or-inserting-data/#findComment-410066 Share on other sites More sharing options...
revraz Posted December 9, 2007 Share Posted December 9, 2007 INSERT adds a new Row, UPDATE updates an existing row. Link to comment https://forums.phpfreaks.com/topic/80831-solved-quick-question-about-php-and-updating-or-inserting-data/#findComment-410070 Share on other sites More sharing options...
scarlson Posted December 9, 2007 Author Share Posted December 9, 2007 Ahh, ok. Well then UPDATE is what I want. Thanks for the info. Link to comment https://forums.phpfreaks.com/topic/80831-solved-quick-question-about-php-and-updating-or-inserting-data/#findComment-410080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.