Jump to content

Error????


Andu Jame

Recommended Posts

 

<?

include("config/config.php");

 

$ip1=getenv('REMOTE_ADDR');

//echo "ip1=$ip1<br>";

$q="select from kawalan_punch where id_kursus='$id_kursus'";

$r=mysql_query($q);

$row=mysql_fetch_array($r);

$ip2=row["ip_client"];

//echo "ip2=$ip2<br>";

 

if($ip1==$ip2){

$q1="insert into maklumat_kedatangan (id_pelajar,tarikh,masa,id_slot) values ('$id_pelajar','$tarikh','$masa','$id_slot')"

$r1=mysql_query($q1);

echo "You Are Punch In";  //punching id card for attendance system

}

 

?>

 

Link to comment
https://forums.phpfreaks.com/topic/52914-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.