• Display group_concat results in php

    $value = $row['concat_col'];
    $values = explode(",", $value); //assuming you group_concat used commas e.g. John,James,Jim
    
    //$values is an array of strings concatenated by group_concat
    echo $values[0]; //John
    echo $values[1]; //Jim
  • 0 comments:

    Post a Comment

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari