Problem storing array in database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agarwalsrushti
    New Member
    • Feb 2008
    • 63

    #16
    I wanted to know how can i display all the results.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #17
      This discussion leads nowhere. I would appreciate it when you specified exactly what you wanted to show, and not just "I want to display it all", What is all? From which table?

      As I said, you select only one field from the db so you can only display one field. When you want to display all fields from the 'tagmaster' table, you must select everyting, i.e. replace field 'Tagmaster' by an asterisk (*)[php]$result9 = "SELECT * FROM tagmaster WHERE TagId= ".$info8['TagId']."" ;
      $data9 = mysql_query($re sult9) or die(mysql_error ());
      $row = mysql_fetch_ass oc($data9);
      $skills = implode(",",$ro w);
      echo $skills;
      }[/php]Ronald

      Comment

      • agarwalsrushti
        New Member
        • Feb 2008
        • 63

        #18
        That to dint helped. Is it possible that the comma separated values that i take from the user can be stored as it is in the database in a separate field.
        For eg if user enters Java,PHP as key skills. Then can i make it appear in database as Java,PHP

        Comment

        Working...