Dear Friends,
I have a table which has four rows at one column and on other column it has one cell colspan with 4.
I have some hyperlinks in each row on left side and I want that by clicking on every link different data should be print on right column.
But I have failed to do it. Please tell me what shoud I do...
Here is the code........... ...
[PHP]<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#1 11111" width="100%" id="AutoNumber1 ">
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=category">A dd
category</a></td>
<td width="50%" style="padding: 10" rowspan="4" valign="top">
<?
if ($add == "category")
{
echo "You can add category here";
}
else if($add == "subcat")
{
echo "You can add sub category here";
}
else if($add == "city")
{
echo "You can add City here";
}
else if($add == "country")
{
echo "You can add country here";
}
?>
</td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=subcat">Add
sub-category</a></td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=city">Add City</a></td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=country">Ad d
Country</a></td>
</tr>
</table>[/PHP]
I know my way of doing this is totally wrong...Please tell me the better way to do this.
Your advice/help on this will be really appreciated.... .........
Thanks
Deepak
I have a table which has four rows at one column and on other column it has one cell colspan with 4.
I have some hyperlinks in each row on left side and I want that by clicking on every link different data should be print on right column.
But I have failed to do it. Please tell me what shoud I do...
Here is the code........... ...
[PHP]<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#1 11111" width="100%" id="AutoNumber1 ">
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=category">A dd
category</a></td>
<td width="50%" style="padding: 10" rowspan="4" valign="top">
<?
if ($add == "category")
{
echo "You can add category here";
}
else if($add == "subcat")
{
echo "You can add sub category here";
}
else if($add == "city")
{
echo "You can add City here";
}
else if($add == "country")
{
echo "You can add country here";
}
?>
</td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=subcat">Add
sub-category</a></td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=city">Add City</a></td>
</tr>
<tr>
<td width="50%" style="padding: 10"><a href="file.php? add=country">Ad d
Country</a></td>
</tr>
</table>[/PHP]
I know my way of doing this is totally wrong...Please tell me the better way to do this.
Your advice/help on this will be really appreciated.... .........
Thanks
Deepak
Comment