PHP Runner Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

phprunner multiple selected

how do I make value phprunner in multiple selected in row instead join text
examples ; in multiple selected value like this - dog, cat,mouse, birds
but I want like this

  • dog
  • cat
  • mouse
  • birds
    pleased someone help me.
    any help would be appreciated
    thanks in advance

if ($values["fieldname"])
{
$arr = explode(",",$values["fieldname"]);
// This is the name of the multi check box or
// list select field, its value becomes $arr
for ($i=0;$i<count($arr);$i++)
{
$strInsert = "insert into TableName (field) values ('".$arr[$i]."')";
// add more fields from the add page to be inserted into database

db_exec($strInsert);
}
header("Location: MyPage_list.php");
// Exit and Redirect to the list page after updating database
exit();
}
I'm new to phprunner
please someone explain to me how do i use this code
thank you in advance

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoibmFCWHRGbmR2VHZrQmNDdyIsImdkcHIiOjB9