开发者

enter selected checkbox values into database separated by commas [closed]

开发者 https://www.devze.com 2023-02-15 06:49 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I have a php form with text boxes,radiobutton and checkboxes.I have written the coding for inserting the entered datas into database .my datas are getting entered except that of the checkbox values.i want to enter all the selected checkbox values within a single column separated by commas.can anyone correct my coding.I am not entering the code here since half of the codings are getting hidden.please go to the folllowing li开发者_如何学Cnk to view my coding.

http://pastebin.com/DTR9LvtZ


try something like

 $url = implode("," , $_REQUEST['url']); 

to convert your array to a comma seperated string

0

精彩评论

暂无评论...
验证码 换一张
取 消