插入查询NO ERROR但没有结果

时间:2014-06-15 17:06:51

标签: php mysql sql

我试图在此表中插入数学函数的结果

open_list表

+----------+----------+
+  id      + result   +
+----------+----------+

这是我的来源

$result="select markers_tujuan.lng,markers_tujuan.lat,open_list.lat, open_list.lng,
((SQRT((((markers_tujuan.lat-markers_tujuan.lng)*(markers_tujuan.lat-markers_tujuan.lng)) + ((open_list.lat-open_list.lng)*(open_list.lat-open_list.lng)))))(sqrt((((markers_tujuan.lat-open_list.lat)*((markers_tujuan.lat-open_list.lat)))+((markers_tujuan.lng-open_list.lng)*((markers_tujuan.lng-open_list.lng))))))) as hasil
from markers_tujuan, open_list";
$result2= mysql_query($result);

$result=$result2;
$try="INSERT INTO open_list(result) VALUES '$result'";
$result3= mysql_query($try);

但未添加任何查询:(

0 个答案:

没有答案
相关问题