if ($key == 'NewIpPhone'){
set_flag_sip($user_id);
$q="select name,secret,type,callerid from cc_sip_buddies where id_cc_card='$user_id'";
if($res=mysql_query($q))
{
if($row=mysql_fetch_row($res))
{
$value="name".return $row[0];
$value.="password".return $row[1];
$value.="type".return $row[2];
$value.="callerid".return $row[3];
return $value;
}
return 0;
}
return 0;
}
}
$sql="INSERT INTO newrequest (id,[key],value,sent,time) VALUES ('0','$key','$value','0', NOW())";
$retval = mysql_query( $sql);
if(! $retval )
{
die('Could not enter data: ' . mysql_error());
}
是对的吗?
答案 0 :(得分:0)
$sql="INSERT INTO newrequest (id,[key],value,sent,time) VALUES ('0','".$key."','".$value."','0', NOW())";