Can someone please tell me if I did anything wrong with the following snippet.
$result = mysql_query($query);
while ($rows = mysql_fetch_row($result))
{
$ID=$rows["UserID"];
$rows[2]=$newDate;
$newDate = date ("D M d, Y");
echo ("<p class=head><b>$newDate</b></p>");
echo ("<table align=center border=0 cellspacing=0 width=400><tr><td>");
echo ("$rows[3]<p><i>Posted by <font color=aqua>$rows[1]</font>, ");
echo ("on $newDate.</i>");
echo ("<p align=right><a href='http://www.phpbuilder.com/board/archive/index.php/$PHP_SELF?mode=edit&EntryID=$ID'>Edit</a> ");
echo ("/ <a href='http://www.phpbuilder.com/board/archive/index.php/$PHP_SELF?mode=delete&EntryID=$ID'>Delete entry</a></p>");
echo ("</td></tr></table>");
}
When loaded into the page, the path shows index.php?mode=show&EntryID= . EntryID has no value. Why is it so?
$result = mysql_query($query);
while ($rows = mysql_fetch_row($result))
{
$ID=$rows["UserID"];
$rows[2]=$newDate;
$newDate = date ("D M d, Y");
echo ("<p class=head><b>$newDate</b></p>");
echo ("<table align=center border=0 cellspacing=0 width=400><tr><td>");
echo ("$rows[3]<p><i>Posted by <font color=aqua>$rows[1]</font>, ");
echo ("on $newDate.</i>");
echo ("<p align=right><a href='http://www.phpbuilder.com/board/archive/index.php/$PHP_SELF?mode=edit&EntryID=$ID'>Edit</a> ");
echo ("/ <a href='http://www.phpbuilder.com/board/archive/index.php/$PHP_SELF?mode=delete&EntryID=$ID'>Delete entry</a></p>");
echo ("</td></tr></table>");
}
When loaded into the page, the path shows index.php?mode=show&EntryID= . EntryID has no value. Why is it so?