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
mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???
this is the code i got
GMail like Chat in ASP.NET
Hi,Can anyone suggest me, how to incorporate GMail like chat in my existing ASP.Net application.I wa
Add 5 to a variable when a button is clicked, and re-run a for loop
So I'm making a feedback sort of section on a website with MySQL and PHP, I've gotten the script to
Rss feed question
Hi
My blog and my website are different. Am i able to take my rss feed
from my blog and p
Need help with an email blocker for a guessbook
I am new with php and here is a simple guessbook page but I am being hit with spam from a group of t
Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p
php wont update my db
hello,
sorry for posting in mysql forum but i dont know where exactly is the problem but here
Need help to identify this error please
:confused:Can anyone help me tell what this error message means? Maybe tell me where to look to fix
Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system
Say I go to h
How to create a static html menu from a database
Hi,
I have built a small cms which allows me to create simple html pages and then upload them