I want to diplay comments and in each comment there will be a checkbox:
Now is there anybody who can tell me how use them in php so that when i select
forexample 5checkboxes containing comment each,i will be able to DELETE them All
at the same time.?
mrcniceguy
5
Posting Whiz in Training
Recommended Answers
Jump to Postif you're using a database, you could use something like this.
<? /* this script is for a postgre database, for mysql replace "pg_" with "mysql_" */ //connection here if(count($_POST) > 0) { if(is_array($_POST['chkCommments'])) { $commentpks = ""; foreach($_POST['chkCommments'] as $commentpk) { $commentpks .= $commentpk . ", …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.