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
duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no
Image DPI
Hi.
I allow users to upload images, the user then is able to adjust several settings for the
Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite
SELECT * FROM users WHERE Users are not in Blocked
How do I select all users from users table where there users_id is not stored in the block table
Google Map
I have done Google Map Integration for one my project. But for that we need the "latitude and l
INSERT for date range
Hi all
I have the following table
Code: [Select] `date` date
`day` int(2)
`
Error in write byte array into document in SM58
Hi Gurus,
Getting the following error status in Transactional RFC (SM58) ..... *Error i
Option box to change variable
Hello, i need help by making a script!
I need to write a file with option box, so a dropdown
DirectoryIterator and Hacked Website
Hi Everyone.
My problem:
Some one has been sneaking in to my website hidden Iframes. I've
User information
Hi All,
By using t-code SUIM we get all the user details,if suppose we donot have permission t