Only editor can post into database but the price could'nt Post into database..
So, how can i make query let say 1st Row in form has Field 1 = Fullname, Field 2 = Age.. and i can add new row again with the same field and submit all information to array into database
<?php
session_start();
include "_config/config.php";
//include "header.php";
if (isset($_POST["editor"])) //&& ($_POST["price"]) && is_array($_POST["price"]) && count($_POST["price"]) > 0)
{
foreach($_POST["editor"] as $editor)
{
// echo htmlspecialchars($editor, ENT_QUOTES);
mysql_connect($server, $db_user, $db_pass) or die ("Database CONNECT Error (line 62)");
mysql_db_query($database, "INSERT INTO arrayins VALUES ('','$editor','$price')");
echo "Data Successfully Added";
echo '<br />';
}
}
?>