View Full Version : Problem with checkboxes in PHP
chizu
04-08-2006, 06:17 PM
I am trying to make a script that you choose the different mails that you want to delete with checkboxes. I have searched the internet, but I can only find tutorials where the data is inserted on one line (1, 2, 3,) and for my script, each mail is on a seperate line in the MySQL database. Any tips?
Kakao
04-08-2006, 08:26 PM
mysql code:
delete from table
where mail_number in (45, 389, 2092)
Programming Tutorial for absolute beginners (http://programming-crash-course.com/)
degsy
04-10-2006, 02:52 PM
In your form make sure you use the correct syntax to create an array.
Here is an example of using Checkboxes and the SQL IN clause
http://degs.co.uk/test/hct/loop_through_checkbox_check_limit_php_array.php
chizu
04-26-2006, 10:41 PM
Thanks for your help! I think I have got it now.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.