Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
i have just used dacid powers code, it places all the content in one feild, is this correct?
Copy link to clipboard
Copied
>i have just used dacid powers code, it places
>all the content in one feild, is this correct?
Storing more than one value in a database column violates rules of database normalization. Generally, it should be avoided. What is the nature of the data you are storing?
Copy link to clipboard
Copied
it has stored size ID's into one feild in the DB, i didnt think it was correct so didnt use it, i wanted to use the multiple select and store each individual ID in different feilds
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO beauStock (StockID, ID, SizeID, Stock, Sold) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['StockID'], "int"),
GetSQLValueString($_POST['ID'], "text"),
GetSQLValueString($_POST['SizeID'], "text"),
GetSQLValueString($_POST['Stock'], "text"),
GetSQLValueString($_POST['sold'], "text"));
<select name="SizeID[]" multiple="multiple">
Copy link to clipboard
Copied
i need to store the sizes as individual records in the database because this is how they need to be retrieved (as individual records so when i use the mutiple select list rather then insert them as comma seperated sizes thee need to be individually stored