djjjozsi Posted June 22, 2009 Share Posted June 22, 2009 its working for me. check your form action (filename) you should not place the ID field into the field list, becouse promary keys should not be changed. Chech the table name in your code, are you using this? $tablename = "test_mysql"; // <--- Link to comment https://forums.phpfreaks.com/topic/162636-script-not-working-to-updatedelete-database-records/page/2/#findComment-861483 Share on other sites More sharing options...
webguync Posted June 22, 2009 Author Share Posted June 22, 2009 ok, it appears to be working now. thanks for the help so far. one more small thing. the text that appears at the top Updated row(s): 3 Deleted row(s): 1 is there a way to change that? I want it to say updated number of rows(3) to make it more clear. Link to comment https://forums.phpfreaks.com/topic/162636-script-not-working-to-updatedelete-database-records/page/2/#findComment-861503 Share on other sites More sharing options...
djjjozsi Posted June 22, 2009 Share Posted June 22, 2009 Lets edit the source code to print the format you need, 4 example: if(!empty($updated)) print "Updated number of rows($updated) <br />"; if(!empty($deleted)) print "Deleted number of rows ($deleted): "; Link to comment https://forums.phpfreaks.com/topic/162636-script-not-working-to-updatedelete-database-records/page/2/#findComment-861508 Share on other sites More sharing options...
webguync Posted June 22, 2009 Author Share Posted June 22, 2009 ok, gotcha. Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/162636-script-not-working-to-updatedelete-database-records/page/2/#findComment-861532 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.