자바에서

 

String seturl = "http://www.mem.com/mem/mem_member.php?hp="+strPhone;

try{
   URL url  = new URL("seturl);
   url.openStream();
}catch(Exception e){
        
}

 

로 url을 열어주고

 

php에서

 

<?php
$con = mysql_connect("localhost", "aa", "bb");
mysql_select_db("my", $con);

$hp = $_GET['hp'];

$result = mysql_query("select * from member where m_phome = '$hp'");
$result_count = mysql_fetch_array($result);

if($result_count[cnt] != "1")
{
 mysql_query = "insert into member (m_phone) values ('$hp')";
 mysql_close($con);
}
?>

 

로 웹 디비의 my라는 곳에 값을 넣으려는데요.

 

에러도 나오지 않고 값도 안 들어가고 어디서 잘못된건지 잘 모르겠는데요.

 

부족함이 많은 초보를 위해 뭔가 부족한게 있는지 좀 봐주세요 ㅠ.ㅠ