Andu Jame Posted May 25, 2007 Share Posted May 25, 2007 <? 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 } ?> Quote Link to comment https://forums.phpfreaks.com/topic/52914-error/ Share on other sites More sharing options...
btherl Posted May 25, 2007 Share Posted May 25, 2007 The error is here: //echo "ip=$ip1 "; Instead, do this: //echo "ip=$ipq\n"; It's the same, but only one line. "\n" == "next line" or "new line" Quote Link to comment https://forums.phpfreaks.com/topic/52914-error/#findComment-261320 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.