Re: [PHP] Re: stripping first comma off and everything after

2010-06-18 Thread Troy Oltmanns
http://php.net/manual/en/function.split.php I haven't tested for efficiency but splitting it will be great for assigning it easily into an array. On Fri, Jun 18, 2010 at 7:42 PM, Robert Cummings wrote: > shiplu wrote: > >> I'll use, >> >> list($data) = explode(",",$entries[$i]["dn"]); >> >> > It

[PHP] php forms - select menu selected behavior

2009-04-28 Thread Troy Oltmanns
I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current iteration, if there's a match, then add selected code so the category is prechosen. More