Hey guys.. going crazy over this :'(
This is my form
echo "<form action='addwebsitekeywordsscript.php' method='post'>";
echo "<input type='hidden' value='" . $currentwebsite . "' name='id' /><br />";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>מילת מפתח:</div> <input type='text' name='keyword[]' class='kywrd1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>חיפושים:</div> <input type='text' name='keywordSearch[]' class='kywrdsrc1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>שפה:</div> <select class='kywrdlang'> <option value='he'>עברית</option> <option value='en'>אנגלית</option></select></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>מילת מפתח:</div> <input type='text' name='keyword[]' class='kywrd1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>חיפושים:</div> <input type='text' name='keywordSearch[]' class='kywrdsrc1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>שפה:</div> <select class='kywrdlang'> <option value='he' >עברית</option> <option value='en'>אנגלית</option></select></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>מילת מפתח:</div> <input type='text' name='keyword[]' class='kywrd1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>חיפושים:</div> <input type='text' name='keywordSearch[]' class='kywrdsrc1' /></div>";
echo "<div class='kywrdformcontnr'><div class='kywrdform'>שפה:</div> <select class='kywrdlang'> <option value='he'>עברית</option> <option value='en'>אנגלית</option></select></div>";
echo "<br style='clear: both' />";
echo "<input type='submit' class='sendbutton' value='הגש טופס' />";
echo "</form>";
This is the Mysql Insert code
mysql_select_db("seorgani_maincldb", $con);
mysql_query("SET NAMES 'UTF-8'");
$sql="INSERT INTO KeywordList (id, keyword, keywordSearch, keywordlanguage)
VALUES
('$_POST[id]','$_POST[keyword]','$_POST[keywordSearch]','$_POST[keywordlanguage]')";
if (!mysql_query($sql,$con))
{
die('שגיאה: ' . mysql_error());
}
I need to enter multiple VALUES meaning take the first set of value into the the 1 raw
then the second raw and so on..
I know it wont work this way but have looked for a way to do that
across the web and couldn't find it or i don't know what i am looking for
Any help would be greatly appreciated :idea: