please hep to get values from a table row


Posted on 16th Feb 2014 07:03 pm by admin

can anyone tel me how I can select and get data from one row by pressing an Edit button in that row?

<?php
if (!empty($avil_holidays))
{
foreach ($avil_holidays as $val)
{
switch ($val['h_type'])
{
case 1:
$str = $conf['holiday'][1];
break;
case 2:
$str = $conf['holiday'][2];
break;
case 3:
$str = $conf['holiday'][3];
break;
case 12:
$str = $conf['holiday'][1] . '/' . $conf['holiday'][2];
break;
case 13:
$str = $conf['holiday'][1] . '/' . $conf['holiday'][3];
break;
case 23:
$str = $conf['holiday'][2] . '/' . $conf['holiday'][3];
break;
case 123:
$str = $conf['holiday'][1] . '/' . $conf['holiday'][2] . '/' . $conf['holiday'][3];
break;
}
?>
<tr>
<td width="135" height="20" align="center" bgcolor="#FFFFFF"><?= date('Y-F-d', $val['h_date']) ?></td>
<td width="135" align="center" bgcolor="#FFFFFF"><?= $str ?></td>
<td width="135" align="center" bgcolor="#FFFFFF"><?= $val['h_des'] ?></td>

<td width="89" align="center" bgcolor="#FFFFFF"><input name="btnEdit" type="submit" class="button-1" value="Edit" onclick="return test();"/></td>
<td width="87" align="center" bgcolor="#FFFFFF"><input name="btnRemove" type="submit" class="button-1" value="Remove" /></td>
</tr>


thanx

No comments posted yet

Your Answer:

Login to answer
265 Like 5 Dislike
Previous forums Next forums
Other forums

HeaderSelectedCssClass not working
I have an accordian where I have a drop down list in the first pane and a grid in the second pane.

Shuffle Array
Hi,

I am writing a script for a game that needs players to randomly be assigned a target (ano

Amatuer requiring assistance
Beginner and amateur in need of assistance

My Site - (Spare Parts for Domestic Appliances)

image upload, resize THEN submit form
Ok so I have a form that requires the user to upload an image, and then do something with that image

Solution Manager BPR
Does the SolMan-BPR-ARIS-Integration (http://www.ids-scheer.com/en/ARIS/ARIS_Platform/ARIS_Business_

Oracle11g Patch issue
Hi all,

I'm getting the following error while installing Oracle11g Patch 11.1.0.7.0 on IBM-AI

opening a window with after form submission
I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.
<

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash