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))
{
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

265 Like 5 Dislike
Previous php-forum Next php-forum
Other php-forum

Getting rid of quotes when printing data
Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function esca

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

removing space from the end of a variable
i have a variable $image which contains the following url "http://tiles.xbox.com/tiles/oo/P5/0m

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

Is it a good practice to store user info. in sessions?
I am making a user class for my script which stores all the user information in sessions. It takes u

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

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