i am new user in php and i want any one to help me in this code
[php]<?php
$GLOBALS[‘pay_databass1’]=“payactivedcode.dat”;
$clint_active=“1111111113”;
$clint_serial=“0000000003”;
$clint_macadd=“1234567893”;
$lines = file( $GLOBALS['pay_databass1'] );
if ( is_array( $lines ) )
{
foreach ( $lines as $line )
{
list( $user,$pass,$actvecode,$days,$startt_date,$endd_date,$serial,$mac) = split(",", $line );
if((strcmp($actvecode,$clint_active) == 0)&& (strcmp($clint_serial,$serial) == 0 ))
{
echo "found";
}
else
{
echo "no";
}
}
}
?>[/php]
the file payactivedcode.dat have this data
user1,pass1,1111111111,365,1332078114,1363614155,0000000002,1234567890,
user2,pass2,1111111112,365,1332082681,1363618681,0000000002,1234567892,
user3,pass3,1111111113,365,1332086846,1363622846,0000000003,1234567893,
naw this code when i run it it return with
notnotfound
because it try to check for $clint_active in line 3
i want it to print " found " direct with out notnot
and if i change $clint_active=“1111111113”; to be $clint_active=“1111111111”;
i got notnotnot haw to set ti to write “not”