hello again guys... im in trouble here in my coding which i cannot open a link for the end user of the page in the site where there is a portal thru the folder... [sorry for my english ahehe..]
anyway, here is my code...
//-- for the table linkage with icon
[code=html]
<table>
<tr>
<td class="rowsaved isk"> <a href="<? echo $dirPath.$rows['name']; ?>" target="_blank" title="Poster"> <img src="imgs/icons/save.gif" alt="" border="0" /> </a> </td>
</tr>
</table>[/code]
however, when the database name and path are empty, i need to disable the current linkage in my table like this:
//-- for the table linkage with icon
[code=html]<table>
<tr>
<td class="rowsaved isk"> </td>
</tr>
</table>[/code]
where there is no open link when the name and path of the database are empty... now i wish that someone can help me to correct my code...
here is my code for the path-link:
//--[code=php]
<?php
$source = $name . $path;
$query = "SELECT id, name, path FROM $sched LIMIT 1";
$result = mysql_query($qu ery) or die('Error, query failed');
if($source == 0) {
// empty space or no content instead
echo "";
} else {
// include this path if the result is 1
echo "<a href=\"<? echo '$dirPath.$rows['name']'; ?>\" target=\"_blank \" title=\"Poster\ "><img src=\"imgs/icons/save.gif\" alt=\"\" border=\"0\" />";
?>[/code]
sorry for my coding... ahehehe... im not so great in programming... so please understand in what i mean....
anyway, here is my code...
//-- for the table linkage with icon
[code=html]
<table>
<tr>
<td class="rowsaved isk"> <a href="<? echo $dirPath.$rows['name']; ?>" target="_blank" title="Poster"> <img src="imgs/icons/save.gif" alt="" border="0" /> </a> </td>
</tr>
</table>[/code]
however, when the database name and path are empty, i need to disable the current linkage in my table like this:
//-- for the table linkage with icon
[code=html]<table>
<tr>
<td class="rowsaved isk"> </td>
</tr>
</table>[/code]
where there is no open link when the name and path of the database are empty... now i wish that someone can help me to correct my code...
here is my code for the path-link:
//--[code=php]
<?php
$source = $name . $path;
$query = "SELECT id, name, path FROM $sched LIMIT 1";
$result = mysql_query($qu ery) or die('Error, query failed');
if($source == 0) {
// empty space or no content instead
echo "";
} else {
// include this path if the result is 1
echo "<a href=\"<? echo '$dirPath.$rows['name']'; ?>\" target=\"_blank \" title=\"Poster\ "><img src=\"imgs/icons/save.gif\" alt=\"\" border=\"0\" />";
?>[/code]
sorry for my coding... ahehehe... im not so great in programming... so please understand in what i mean....
Comment