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

Google Wave
So... has anyone used it yet? Is it any good?

http://wave.google.com/help/wave/about.html#vid

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

please, need help coding this voting for your favorite car polling system.
hi, my code needs a lot of work, but i want to be able to let users vote on their favorite car, upda

Need help with basic sql
Hi,

I am using oracle 10g, and having some small doubts related to sql , here goes the si

Best PHP Documentation generator
Hello guys!

I would like to hear from you what is the best PHP documentation generator. Perso

Scheduler problems related to execution of a single BLT by many schedules
Hello all,

We are running several MII instances in a distibuted architecture using a sing

Sales orders ans reservations not taken into account on MPS / MRP
Hello,

I am implementing the MPS / MRP and I have the following problem:

I ha

need help about
i store the value of my select statement result to an array and stored it to a variable named $fname

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

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