I have a script containing this code:
if ( !isset( $POST["english_id"]))
{ $loc_result = get_my_data();
while ( $my_row = mysql_fetch_array($loc_result) )
{ //displaying
$POST['english_id'] = $my_row["english_id"];
$POST['word'] = $my_row["word"];
printf("
<a href=\"%s?english_id=%s\">%s </a>\n",
$SERVER['PHP_SELF'], $POST['english_id'], $POST['word']);
}
}
else
{ //editin here
echo "in english id";
}
The script should display in the first instance display some records
and then in the second instance enable the user to edit a record.
When selecting a record through a link, the script is invoked again like this:
"http://localhost/select_voc_2.php?english_id=2", but isn't running into the "else" part of the script.
Anyone with an explanation?