Welcome Guest, Not a member yet? Register   Sign In
Explode for selected
#2

$cid is array in your case, so the <option> selected will be like this

Code:
<option value="<?php echo $c->ID; ?>" <?php echo in_array($c->ID, $cid) ? "selected":"" ?>><?php echo $c->currencyCode; ?></option>


I hope this works for you
Reply


Messages In This Thread
Explode for selected - by googlemy - 11-06-2017, 08:53 PM
RE: Explode for selected - by pravins - 11-06-2017, 10:43 PM
RE: Explode for selected - by googlemy - 11-06-2017, 11:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB