teamfox20 Posted February 9, 2007 Share Posted February 9, 2007 Can someone please show me how to add a Insert record or if record exisits then update it. Link to comment Share on other sites More sharing options...
kgt Posted February 9, 2007 Share Posted February 9, 2007 That's a very general question. Here's a general answer: http://dev.mysql.com/doc/refman/5.1/en/insert.html http://dev.mysql.com/doc/refman/5.1/en/update.html If you can ask a specific question, a more specific answer could be given. For example, explain what you're trying to do. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
teamfox20 Posted February 9, 2007 Author Share Posted February 9, 2007 I have a form where a customer can enter misc. information we will call them fields 1-9... None of these fields are found in the oscommerce database so i created a new table and added a row manually via mysql admin...and it updates just fine....but when i log in as another user(not the one i manually created a record for), i need it to be able to create a new row as well as update a current row if customers_id and email matches any of the records...i pass the customers_id and email address also, along with field 1-9 as to be able to keep everything in sync. Im assuming i have to add/edit the query info in the database.php page but im not sure what to do. I am available via AIM if you want to contact me... CEBCSDanny Thank you! Link to comment Share on other sites More sharing options...
kgt Posted February 9, 2007 Share Posted February 9, 2007 Is this form part of the account edit page? Or is it a separate page you have added? Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
teamfox20 Posted February 9, 2007 Author Share Posted February 9, 2007 I added an extra page, called account_edit_rates.php Is this form part of the account edit page? Or is it a separate page you have added? Link to comment Share on other sites More sharing options...
teamfox20 Posted February 10, 2007 Author Share Posted February 10, 2007 I added an extra page, called account_edit_rates.php i figured it out....when they sign up i made it add an empty field in TABLE_RATES with only the email address and customers_id....so then they can update it..... thanks anywho! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.