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
5
Other forums
Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?
I have been googling and found lots of th
update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an
How to add functionality to a simple php calender?
Hello everyone,
I have just finished creating a simple php calander. Can someone point
Creation of Raw Exposure manually
SAP Gurus
I am creating Raw Exposure ( Hedge management ) thru T Code TEM10 with followin
help with mysql_error()
Hi,
I am trying to insert data into a table, but I am not able to insert it. I wanted to see
Pagination
Hi All,
I think I'm finally getting somewhere with pagination!
I can now submit a quer
Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?
$playern
Remore client postprocessing phase getting dump SAPSQL_ARRAY_INSERT_DUPREC
Hello Expects,I have started remore client copy. Data was copied successfully. but while running pos
PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi
Writing Windows Device Drivers with C
Yes: one of the nice features of C is void*. You can put anything there and get anything out. Very