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))
Did you know?Explore Trending and Topic pages for more stories like this.
{
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

session variables not working anymore
hello,
i use sessions to handle authentication within my site. my host has been changing a lot of

Line break?
Hi, I'm new to the forum and new to php. I'm not sure if I'm using the correct terminology so here i

sapgui f4 help last search
I know this has to be simople. One user (maybe more) does not have the "last search saved" from the

How to return to a previous page after running a PHP script
I'm having a bit of a melt down here because I think this should be really easy but can't work it ou

Feed Maker
Hi all.
First of all I must say I am not a php developer so I am afraid I don't know much about i

How to insert random unique values in 2 columns ?
I have table with 2 columns

Create Table code_for_code (
first_code varchar2(10) uni

Stopped working!
So I had to change some stuff, none of it major. Stuff like the extension_dir and such. BEFORE I did

Transaction variant for VA02 not working
My requirement is to have transaction for user to only add the output and print a sales order.

Combining refCursors and Summing
Given the following DDL:

CREATE TABLE FOODSALESTEST ("WEEKNBR" NUMBER, "ST

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

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