Thanks for the reply, seems I've scared some people off - all I need is to split the HTML variable strings by one regular expression ";", that is what I've requested people use when using the form (and if they don't they don't)... So if I do something along the lines of this:
$Authors = $_POST["Authors"];
$keywords = $_POST["keywords"];
$ID_Number = $_Post["ID_Number"];
$keyword = preg_split(";",'$POST_[keywords]',-1,PREG_SPLIT_NO_EMPTY)
mysql="INSERT INTO Keyword (Keyword, ID_Number) Values
(FOREACH '$keyword', '$POST[ID_Number]')";
if (!mysql_query($sql,$con)) {
die('Error: ' . mysql_error()); }
echo "Table: Keyword Updated";
$author = preg_split(";",'$POST_[Authors]',-1,PREG_SPLIT_NO_EMPTY)
mysql="INSERT INTO Author (Author, ID_Number) Values
(FOREACH '$author', '$POST[ID_Number]')";
if (!mysql_query($sql,$con)) {
die('Error: ' . mysql_error());}
echo "Table: Author Updated";
I should not only get the results I want (in both cases, in each table, a row with both the array item (Author or Keyword) and the ID_Number? If so, that will be wonderful, that is PRECISELY what I need... :-D That plus the feedback for each table should be good - I can always remove that later, first of all I have to get the code to work :wtf: