<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: เพิ่มหมุดจาก Google Maps ลง Database</title>
	<atom:link href="http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/</link>
	<description>Random Thoughts on Random Things by Tanomsak</description>
	<lastBuildDate>Wed, 01 Sep 2010 22:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: tanomsak</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-262</link>
		<dc:creator>tanomsak</dc:creator>
		<pubDate>Sun, 08 Aug 2010 20:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-262</guid>
		<description>ผมเขียน php ไม่เป็นนะครับ แต่เท่าที่ดูเหมือนกับว่าตอน insert จะมีเครื่องหมายคำพูด &quot; &#039; &quot; อยู่ตรง value แต่ว่าตอน update ไม่มีหรือเปล่าครับ</description>
		<content:encoded><![CDATA[<p>ผมเขียน php ไม่เป็นนะครับ แต่เท่าที่ดูเหมือนกับว่าตอน insert จะมีเครื่องหมายคำพูด &#8221; &#39; &#8221; อยู่ตรง value แต่ว่าตอน update ไม่มีหรือเปล่าครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Man_guitarsolo</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-261</link>
		<dc:creator>Man_guitarsolo</dc:creator>
		<pubDate>Sun, 08 Aug 2010 19:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-261</guid>
		<description>คือผมมีปัญหาขอคำปรึกษาหน่อยครับ คือ ผมทำเว็บไซต์เกี่ยวกับการลงประกาศงาน ทีนี้ ก็อยากนำเอา Google Map API ไปใช้กับบริษัทรับสมัครงานให้สามารถระบุตำแหน่งที่ตั้งของบริษัทได้ กระบวนการทำงานคือ หลังจากบริษัทได้ทำการสมัครสมาชิกกับเว็บผมแล้ว ก็จะสามารถล็อกอินเข้าสู่ระบบเพื่อ แก้ไข ตำแหน่งแผนที่ Google map แทนที่จะเป็น การ Insert ข้อมูลใหม่ ดังนั้นผมจำเป็นต้องใช้ คำสั่ง sql update ที่ตาราง tbl_company ในฟิลด์ lat,lng ที่ผมออกแบบไว้ โดยผมใช้หลักการ คลิกบนแผนที่ แล้วมี pop up ขึ้นมาให้ confirm lat,lng พอคลิก ปุ่ม บันทึกใน pop up ก็จะส่ง url และ parameter ไปให้ไฟล์php ทำกระบวนการ update lat,lng เข้าตาราง tbl_company ซึ่งไม่ทราบว่า sql update ของผมผิดตรงไหนหรือเปล่า ช่วยดูให้ผมหน่อยครับ&lt;br&gt;&lt;br&gt;ตัวอย่าง sql update ของผม&lt;br&gt;$updateSQL = sprintf(&quot;UPDATE tbl_company SET lat=%s,lng=$s WHERE company_id=$s&quot;, &lt;br&gt;                       GetSQLValueString($latitude), &lt;br&gt;                       GetSQLValueString($longtitude),&lt;br&gt;		       GetSQLValueString($company_id)); &lt;br&gt;&lt;br&gt;ุถ้าใช้ sql insert ด้านล่างก็ผ่านครับ&lt;br&gt;$query = sprintf(&quot;INSERT INTO markers &quot; .&lt;br&gt;&quot; (lat, lng ) &quot; .&lt;br&gt;&quot; VALUES (&#039;%s&#039;, &#039;%s&#039; );&quot;,&lt;br&gt;mysql_real_escape_string($lat),&lt;br&gt;mysql_real_escape_string($lng));</description>
		<content:encoded><![CDATA[<p>คือผมมีปัญหาขอคำปรึกษาหน่อยครับ คือ ผมทำเว็บไซต์เกี่ยวกับการลงประกาศงาน ทีนี้ ก็อยากนำเอา Google Map API ไปใช้กับบริษัทรับสมัครงานให้สามารถระบุตำแหน่งที่ตั้งของบริษัทได้ กระบวนการทำงานคือ หลังจากบริษัทได้ทำการสมัครสมาชิกกับเว็บผมแล้ว ก็จะสามารถล็อกอินเข้าสู่ระบบเพื่อ แก้ไข ตำแหน่งแผนที่ Google map แทนที่จะเป็น การ Insert ข้อมูลใหม่ ดังนั้นผมจำเป็นต้องใช้ คำสั่ง sql update ที่ตาราง tbl_company ในฟิลด์ lat,lng ที่ผมออกแบบไว้ โดยผมใช้หลักการ คลิกบนแผนที่ แล้วมี pop up ขึ้นมาให้ confirm lat,lng พอคลิก ปุ่ม บันทึกใน pop up ก็จะส่ง url และ parameter ไปให้ไฟล์php ทำกระบวนการ update lat,lng เข้าตาราง tbl_company ซึ่งไม่ทราบว่า sql update ของผมผิดตรงไหนหรือเปล่า ช่วยดูให้ผมหน่อยครับ</p>
<p>ตัวอย่าง sql update ของผม<br />$updateSQL = sprintf(&#8220;UPDATE tbl_company SET lat=%s,lng=$s WHERE company_id=$s&#8221;, <br />                       GetSQLValueString($latitude), <br />                       GetSQLValueString($longtitude),<br />		       GetSQLValueString($company_id)); </p>
<p>ุถ้าใช้ sql insert ด้านล่างก็ผ่านครับ<br />$query = sprintf(&#8220;INSERT INTO markers &#8221; .<br />&#8221; (lat, lng ) &#8221; .<br />&#8221; VALUES (&#39;%s&#39;, &#39;%s&#39; );&#8221;,<br />mysql_real_escape_string($lat),<br />mysql_real_escape_string($lng));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanomsak</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-164</link>
		<dc:creator>tanomsak</dc:creator>
		<pubDate>Sat, 09 Jan 2010 18:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-164</guid>
		<description>params[:marker] เป็น parameter ที่รับมาจาก browser ครับ &lt;br&gt;&lt;br&gt;โดย Marker.new(_marker) @marker.save! ก็คือสร้าง record ใน database ด้วย parameter ที่รับมาจาก browser ครับ</description>
		<content:encoded><![CDATA[<p>params[:marker] เป็น parameter ที่รับมาจาก browser ครับ </p>
<p>โดย Marker.new(_marker) @marker.save! ก็คือสร้าง record ใน database ด้วย parameter ที่รับมาจาก browser ครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lovetummy</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-163</link>
		<dc:creator>lovetummy</dc:creator>
		<pubDate>Sat, 09 Jan 2010 08:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-163</guid>
		<description>def new_marker _marker = params[:marker] @marker = Marker.new(_marker) @marker.save! end&lt;br&gt;ช่วยอธิบายโค้ดนี้หน่อยครับ เผื่อผมจะไปปรับใช้กับ php</description>
		<content:encoded><![CDATA[<p>def new_marker _marker = params[:marker] @marker = Marker.new(_marker) @marker.save! end<br />ช่วยอธิบายโค้ดนี้หน่อยครับ เผื่อผมจะไปปรับใช้กับ php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poe ค่ะ</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-147</link>
		<dc:creator>poe ค่ะ</dc:creator>
		<pubDate>Mon, 09 Nov 2009 07:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-147</guid>
		<description>-/- ก่อนอื่นต้องขอขอบคุณ tanomsak ที่เขียนบทความนี้มีประโยชน์มากเลยค่ะ แต่อยากให้เพิ่มเติมส่วนนึงค่ะ คืออยากให้มันแสดงหมุดก่อนเลื่อนไปตำแหน่งอื่นค่ะ ทำ code ต่อจากคุณ tanomsak มาหลายวันแล้วยังไม่ได้เลย ขอความกรุณาด้วยค่ะ ^-^</description>
		<content:encoded><![CDATA[<p>-/- ก่อนอื่นต้องขอขอบคุณ tanomsak ที่เขียนบทความนี้มีประโยชน์มากเลยค่ะ แต่อยากให้เพิ่มเติมส่วนนึงค่ะ คืออยากให้มันแสดงหมุดก่อนเลื่อนไปตำแหน่งอื่นค่ะ ทำ code ต่อจากคุณ tanomsak มาหลายวันแล้วยังไม่ได้เลย ขอความกรุณาด้วยค่ะ ^-^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pasinty</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-129</link>
		<dc:creator>pasinty</dc:creator>
		<pubDate>Mon, 14 Sep 2009 16:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-129</guid>
		<description>ช่วยแนะนำ การค้นหาหมุดที่เราสร้างขึ่นเองครับบน google map โดยค้นจาก texbox หรืืิอ listbox ก็ได้ครับ หามา เป็นอาทิตย์แล้วครับ</description>
		<content:encoded><![CDATA[<p>ช่วยแนะนำ การค้นหาหมุดที่เราสร้างขึ่นเองครับบน google map โดยค้นจาก texbox หรืืิอ listbox ก็ได้ครับ หามา เป็นอาทิตย์แล้วครับ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kobdesign</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-90</link>
		<dc:creator>kobdesign</dc:creator>
		<pubDate>Tue, 07 Jul 2009 04:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-90</guid>
		<description>Test Twitter Connect</description>
		<content:encoded><![CDATA[<p>Test Twitter Connect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanomsak</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-83</link>
		<dc:creator>tanomsak</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-83</guid>
		<description>ิยินดีึีืที่มีประโยชน์ และได้คนติดตามอ่านเพิ่มอีกหนึ่งครับ :)</description>
		<content:encoded><![CDATA[<p>ิยินดีึีืที่มีประโยชน์ และได้คนติดตามอ่านเพิ่มอีกหนึ่งครับ <img src='http://www.tanomsak.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indysoft</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-82</link>
		<dc:creator>indysoft</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-82</guid>
		<description>ต้องขอขอบคุณพี่มากเลยครับ ผมกำลังทำโปรเจคเกี่ยวกับ Google Maps API อยู่ด้วยครับ &lt;br&gt;&lt;br&gt;ของพี่ออกแบบได้สวยดีครับ อั๊พข้อมูลเรื่อยๆนะครับ กำลังติดตามอย่างตั้งใจ</description>
		<content:encoded><![CDATA[<p>ต้องขอขอบคุณพี่มากเลยครับ ผมกำลังทำโปรเจคเกี่ยวกับ Google Maps API อยู่ด้วยครับ </p>
<p>ของพี่ออกแบบได้สวยดีครับ อั๊พข้อมูลเรื่อยๆนะครับ กำลังติดตามอย่างตั้งใจ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tutorial แบบบ้านๆ ตอนที่ 1 - Basic Google Maps API &#8212; tanomsak.com</title>
		<link>http://www.tanomsak.com/index.php/2008/12/google-maps-insert-database/comment-page-1/#comment-66</link>
		<dc:creator>Tutorial แบบบ้านๆ ตอนที่ 1 - Basic Google Maps API &#8212; tanomsak.com</dc:creator>
		<pubDate>Sun, 07 Jun 2009 04:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanomsak.com/?p=150#comment-66</guid>
		<description>[...] เพิ่มหมุดใน database [...]</description>
		<content:encoded><![CDATA[<p>[...] เพิ่มหมุดใน database [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
