 |
|
http://newsirius13.thport.com/exp.html
คือลองทำตามตัวอย่างที่ 7 แล้ว มันไม่ได้ ลองแก้โค้ด เป็น
Code (PHP)
<?php
require("phpsql_dbinfo.php");
$con =mysql_connect ($hostname, $username, $password);
mysql_query("SET NAMES UTF8",$con);
if (!$con) { die('ติดต่อฐานข้อมูลไม่ได้: ' . mysql_error());
}
mysql_select_db($database, $con);
$sql = mysql_query("INSERT INTO markers (name, address, type, lat, lng)
VALUES('$_GET[fname]','$_GET[faddress]','$_GET[type]',$_GET[flat],$_GET[flng]) ");
?>
<div align="center">
<p><label></label> </p>
<table width="200" border="0">
<tr>
<td><div align="center"> บันทึกข้อมูลเรียบร้อย </a></div></td>
</tr>
</table>
<p> </p>
</div>
ก็ไม่บันทึก ไม่รู้ไปพลาดตรงไหนอ่ะค่ะ รบกวนใครพอทราบ ช่วยหน่อยนะค่ะ
Tag : PHP, MySQL
|
ประวัติการแก้ไข 2012-11-05 13:55:21 2012-11-05 13:56:20 2012-11-05 14:12:45
|
 |
 |
 |
 |
Date :
2012-11-05 13:54:48 |
By :
mickijung |
View :
889 |
Reply :
6 |
|
 |
 |
 |
 |
|
|
|
 |