OAuthRequest("http://api.twitter.com/account/verify_credentials.xml","GET",array("count"=>"0")); $xml = simplexml_load_string($req); $status = $xml; $tid = $status[0]->id; $res_result = mysql_query( "select count(*) from $tblname where twitter_id = $tid;", $link); if($res_result!=true){ setcookie('stdn','',0,'/','qanta.jp'); }else{ $result = mysql_fetch_array($res_result, MYSQL_ASSOC); //echo $res