Gayner Posted September 1, 2009 Share Posted September 1, 2009 What's different? anything better? Im editing a text and submit it thru get variable should i use Update or Insert? lol Quote Link to comment Share on other sites More sharing options...
ShaunO Posted September 1, 2009 Share Posted September 1, 2009 UPDATE is to update an already existing row(s) in a database table INSERT is to create a new row(s) in a database table Should be easy to figure out what you need based on what the two different functions actually do. Quote Link to comment Share on other sites More sharing options...
Gayner Posted September 1, 2009 Author Share Posted September 1, 2009 UPDATE is to update an already existing row(s) in a database table INSERT is to create a new row(s) in a database table Should be easy to figure out what you need based on what the two different functions actually do. Oh ok sweet. i'll use update then, i aint making new tables lol thanks mysql_query("UPDATE ibf_members SET n = '{$Profile['n']}' WHERE id = '{$ibforums->member["id"]}'"); I want to edit more and update more then jsut the variable "N" possible? Quote Link to comment Share on other sites More sharing options...
Philip Posted September 1, 2009 Share Posted September 1, 2009 Example: UPDATE table SET col1 = val1, col2 = val2, col3 = val3 WHERE id = 3 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.