Select Concatanating Options

Home Forums Quform PHP Select Concatanating Options

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19023
    davidjwest
    Participant

    Hi,

    I have the single select element and it looks fine from a UI point of view. However, whenever an option is selected that has a space in it, the entry in the database is concatanated/truncated at the space, so only the first word is stored.

    Any ideas?

    Might it be something to do with this:

    $columns = implode(“, “, array_keys($data));
    $values = array_map(array($db, ‘real_escape_string’), array_values($data));
    $values = implode(“‘, ‘”, $values);

    The table in the DB is fine, ie there is room for the whole string etc.

    Thanks.

    (eg if user choose “starter kit” from dropdown, the database stores “starter”)

    • This topic was modified 8 years, 6 months ago by davidjwest.
    #19029
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy