Thursday, 8 April 2021

Refresh a page continually and retrieve from db

 Hi all

Use settimeout function with php

Use this code on top of your program.

<script>setTimeout(hup, 3000);

function hup()

{

location.href='predictions.php';

}

</script>

Monday, 22 February 2021

Retrieve IP address from httprequest using PHP

 Hi All,

Use this line for IP address retrieval.

This can be used to verify authenticity of feedbacks.


<?php


 $ipAddress = $_SERVER['REMOTE_ADDR'];

echo $ipAddress;


?>