-
when i submit my dynamic rows ( suppose add 3 rows) values then "sub_brand_name " save correctly and other fields save same values more time.
-
how can I solve this problem?
-
-
-
here is my code:
-
-
-
-
<?php
-
-
if (isset($_POST['title']) && sizeof($_POST['title']) > 0) {
-
$title = array_map('trim', $_POST['title']);
-
foreach($title as $title) {
-
}
-
if (isset($_POST['start_time']) && sizeof($_POST['start_time']) > 0) {
-
$start_time = array_map('trim', $_POST['start_time']);
-
foreach($start_time as $start_time) {
-
}
-
if (isset($_POST['end_time']) && sizeof($_POST['end_time']) > 0) {
-
$end_time = array_map('trim', $_POST['end_time']);
-
foreach($end_time as $end_time) {
-
}
-
if (isset($_POST['peak_offpeak']) && sizeof($_POST['peak_offpeak']) > 0) {
-
$peak_offpeak = array_map('trim', $_POST['peak_offpeak']);
-
foreach($peak_offpeak as $peak_offpeak) {
-
}
-
if (isset($_POST['program_name']) && sizeof($_POST['program_name']) > 0) {
-
$program_name = array_map('trim', $_POST['program_name']);
-
foreach($program_name as $program_name) {
-
}
-
if (isset($_POST['product_name']) && sizeof($_POST['product_name']) > 0) {
-
$product_name = array_map('trim', $_POST['product_name']);
-
foreach($product_name as $product_name) {
-
}
-
if (isset($_POST['sponsor']) && sizeof($_POST['sponsor']) > 0) {
-
$sponsor = array_map('trim', $_POST['sponsor']);
-
foreach($sponsor as $sponsor) {
-
}
-
if (isset($_POST['sub_brand_name']) && sizeof($_POST['sub_brand_name']) > 0) {
-
$sub_brand_name = array_map('trim', $_POST['sub_brand_name']);
-
foreach($sub_brand_name as $sub_brand_name) {
-
-
-
-
-
mysql_query("INSERT INTO entry_history (date,channel_name,title,start_time,end_time,peak_offpeak,product_name,program_name,sponsor,sub_brand_name) VALUES ('$date','$channel_name','$title','$start_time','$end_time','$peak_offpeak','$product_name','$program_name','$sponsor','$sub_brand_name')");
-
}
-
}
-
}
-
}
-
}
-
}
-
}
-
}
-
}
-
else {
-
exit('No values entered');
-
}
-
header('location:entry_history.php');
-
-
?>
-
-
-
On Sun, May 29, 2016 at 3:38 PM, nur muhammad helal <nurmuhammad.helal@gmail.com> wrote:
-
amar kaj onekti a rokom...............
-
-
On Sun, May 29, 2016 at 3:36 PM, nur muhammad helal <nurmuhammad.helal@gmail.com> wrote:
-
http://www.thaicreate.com/php/forum/048745.html
-
-
-
-
-
jalal ai code a ki problems? parle aktu check kore bolo.
-
-
On Thu, May 5, 2016 at 11:40 AM, nur muhammad helal <nurmuhammad.helal@gmail.com> wrote:
-
vi amar problem to save nia . dynamic rows to add remove hossilo but save korte parsina. thanks
-
-
On Wed, May 4, 2016 at 5:03 PM, Shah Jalal <mdjalal2012@gmail.com> wrote:
-
see the url and get implement it in your site
-
http://jsfiddle.net/7AeDQ/
-
-
--
-
Thanks
-
Shahjalal
-
phone:+8801680954856
-
E-mail:mdjalal2012@gmail.com
-
-
-
-
-
-
-
0 1609 Sign in to post your reply or Sign up for a free account.
Similar topics
by: sukh |
last post by:
From the table i want everything highlighted with a *
I wanted an SQl expression to look at values in Column 1 (ID), look at
the corresponding values in the second column (F1) and select the row...
|
by: Maggie Eusebio Schock |
last post by:
Hi,
I would like to understand when a selected cell, selected row or
selected rows in the DataGrid control ends up on the clipboard. All I
know is that the selection ends up on the clipboard,...
|
by: daveland |
last post by:
I am working on some JavaScript that dynamically adds rows to a table
in response to a button click. A new row does appear on the screen
when the button is clicked. However, that table to which a...
|
by: bobby1041 |
last post by:
Hi All!
I am trying to make several fields in a HTML form validated, but only
when a dynamic checkbox is selected. I am not sure how to do this.
Here is a snippet of the dynamic checkbox...
|
by: joozeq |
last post by:
Hi
Is there any way to script a table (with EM or Management studio) along
with data contained in the table (rows values)?
J
|
by: ankurmaheshwari |
last post by:
hii all
How to make 2-d array in java when no of rows are not known
let me know if u have the solution 4 it...
Regards
ankur maheshwari
| |
by: TheSmileyCoder |
last post by:
This is one of those questions I fear will never be answered, but I have to give it a go.
I use an excel spreadsheet (built from Access) to export our review Comments. All of the columns are...
|
by: helalreza |
last post by:
i have some dynamic rows, when i submit a single row submit into my database. how can i insert my dynamic all rows into database by submit?
entry_history.php (page)
|
by: helalreza |
last post by:
My javaScript.
<script language="javascript" type="text/javascript">
var i=0;
function addRow(table1)
{
i++;
frm.reza.value=i;
var tbl = document.getElementById('table1');
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |