jingo811
June 23rd, 2007, 08:25 PM
I want to print out the name of the Organization evaluators whenever there's data in my database. And I want to printout "Don't know" whenever there isn't any data.
But I can't make it work :(
Originally I used
if ( !empty($_REQUEST....)
But that made the code jump right to the
else part thus making all printout "Don't know" even if there's data for selected products.
if ( !isset($_REQUEST["Evaluators"]) ) {
print "<tr>" .
"<td>Organization evaluation by: </td>" .
"<td><b>" .
$one_whole_row["Evaluators"] .
"</b></td>" .
"</tr>";
} else {
print "<tr>" .
"<td>Organization evaluation by: </td>" .
"<td><b>" .
"Don't know!" .
"</b></td>" .
"</tr>";
}
Can you see what's wrong or how I should back track all my codes?
But I can't make it work :(
Originally I used
if ( !empty($_REQUEST....)
But that made the code jump right to the
else part thus making all printout "Don't know" even if there's data for selected products.
if ( !isset($_REQUEST["Evaluators"]) ) {
print "<tr>" .
"<td>Organization evaluation by: </td>" .
"<td><b>" .
$one_whole_row["Evaluators"] .
"</b></td>" .
"</tr>";
} else {
print "<tr>" .
"<td>Organization evaluation by: </td>" .
"<td><b>" .
"Don't know!" .
"</b></td>" .
"</tr>";
}
Can you see what's wrong or how I should back track all my codes?