I want the $colours to be put into the database as a list red,yellow,blue,green and an N/A at the beginning these are later to be called upon for a drop down box where the user selects one
    include'dbc.php';
    $colours = "N/A";
    if (isset($_POST['cb']) && is_array($_POST['cb'])) {
      foreach ($_POST['cb'] as $value) {
        $colours. = $value  ",";
      }
    };
    $sql="INSERT INTO items (category,title,description,qdescription,price,colours)
    VALUES ('$_POST[category]','$_POST[title]','$_POST[description]','$_POST[qdescription]','$_POST[price]','$colours')";
    if (!mysql_query($sql)){
      die('Error: ' . mysql_error());
    }
    mysql_close($db);
 
     
     
     
     
    