Jump to content

Recommended Posts

Inserting and Updating are completely different things, I don't even know why your debating which one to use, they both have a separate purpose.

 

Give us more information on what your doing. Your saying your updating every 10 minutes, so what are your inserting?

Link to comment
https://forums.phpfreaks.com/topic/84962-solved-php-with-mysql/#findComment-433241
Share on other sites

Clearly i havent explained this well with those responces :| . All im asking is... Is it better to use an INSERT() or rather just UPDATE() the information.  I update site statistics which i already said above. EG: how many users are currently registered. In total i have 25 columns.  I could simply just go: mysql_query("UPDATE `table` SET `` = '' WHERE `` = ''"); or what im currently doing which is inserting a new row every 10 minutes.

 

:-\

Link to comment
https://forums.phpfreaks.com/topic/84962-solved-php-with-mysql/#findComment-433246
Share on other sites

Clearly i havent explained this well with those responces :| . All im asking is... Is it better to use an INSERT() or rather just UPDATE() the information.  I update site statistics which i already said above. EG: how many users are currently registered. In total i have 25 columns.  I could simply just go: mysql_query("UPDATE `table` SET `` = '' WHERE `` = ''"); or what im currently doing which is inserting a new row every 10 minutes.

 

:-\

Uh, I have no idea why you're confused on this. Key word: Logic. I think if you re-read what you just typed, you should know that you already answered your own question. ;)

Link to comment
https://forums.phpfreaks.com/topic/84962-solved-php-with-mysql/#findComment-433247
Share on other sites

If your able to update a row in the database without doing anything else, then most likely you should do that. If you have to manipulate data around to insert a row, or it creates unneeded information, then thats not the way to go.

Link to comment
https://forums.phpfreaks.com/topic/84962-solved-php-with-mysql/#findComment-433252
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.