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
Storing Values taken from a DB...
Using this code it will generate a short list from my database
<?php
mysql_connect
Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.
some query on multilingual website
Hi all,
Which is the simplest and easiest method to make a website multilingual,
is it put
Coefficient of a Restitution Hints
Hello. I was wondering if anyone can give me hints on how to write this program...
The coeffi
WELCOME SCREEN
first of all let me tell you what does my script do,
it´s a very simple query to show a e
private constructor
Hello,
Can we create a constructor as private? If yes, what is the use of it? If no, why can'
distinct rows
Hi
version 10.2.0.3
I have a query output something like the following
ID
Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is
checkbox update
I am having a brain fart right now and i cant remember how to do this. if anyone could help that wou
Linkage between two scripts
Okay say I have this for a link in a script:
Code: <li><a href="#&q