if(!empty($results)) // Checking if $results have some values or not
{
echo ”
“; // Addingandtag outside foreach loop so that it wont create again and again echo “”; foreach($results as $row){ $userip = $row->user_ip; //putting the user_ip field value in variable to use it later in update query echo “”; // Adding rows of table inside foreach loop echo “” . “”;
echo “”;
echo ”
“;
echo “”; echo “” . “”; //fetching data from user_ip field
echo “”;
echo ”
“;
echo “”; echo “” . “”;
echo “”;
echo ”
“;
echo “”; echo “” . “”;
echo “”;
echo ”
“;
}
echo “”;
echo “”;}
?>
ID | ” . $row->id . “ |
---|---|
User IP | ” . $row->user_ip . “ |
Post ID | ” . $row->post_id . “ |
Time | ” . $row->time . “ |