Çó½ÌÒ»¸öphpÏòmysql²åÈëʱ¼äµÄÎÊÌâ
ÎÒ¿ÉÒÔ´Óxml¶Áµ½Ò»¸öʱ¼ä£º1235716200000
ËÆºõÓõÄdateµÄʱºòÐèÒª³ý1000
ËùÒÔÎÒÓÃ$start_time = $post->getElementsByTagName("StartTime")->item(0)->nodeValue/1000;
È»ºó$query="INSERT INTO `test` (`start_time`) VALUES (".$start_time.")";
½á¹û±¨´íYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '06:30:00)' at line 1
¼ÓÁ½¸öÒýºÅ$query="INSERT INTO `test`(`start_time`) VALUES ('".$start_time."')";
Ò²±¨´íIncorrect datetime value: '1970-01-01 00:00:00' for column 'start_time' at row 1
Çó½Ì´ïÈË£¬ÕâÊÇʲôÎÊÌ⣿ÔÒòÊÇʲô£¬Ó¦¸ÃÔõôÕýÈ·²åÈë
È¥µôµã .
Òª²»°ÑsqlÓï¾äÊä³öÀ´¿´ÏÂ
$result = $db->query($query);
if (!$result){
echo $query."\n";
echo $db->error.$discover.' <br />';
}else{
//echo $Title."added. <br />";
}
php±äÁ¿ÔÚË«ÒýºÅÖÐÄÜÖ±½Óʹ
$query="INSERT INTO `test` (start_time) VALUES ($start_time)";
ÕâÑù×ÓÓ¦¸Ã¿ÉÒÔ°É
²»ÐУ¬±¨´í
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '06:30:00)' at line 1
echo "INSERT INTO `test` (start_time) VALUES ($start_time)";
Ïà¹ØÎÊ´ð£º
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
ÎÒÒѾ°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......
°²×°ÁËAPHACHE
¿ÉÊÇÔËÐÐÍøÒ³Ê²Ã´¶¼Ã»ÓÐ
¼±
»¹ÏëÇëÎÊÏÂ,JSP.PHP.ASP.NET ÄǸö¹¤×ʸ߰¡,
»ØÌû¾Í¼Ó·Ö
»¹Òª×°php5
×öµÃºÃ£¬Äĸö¹¤×ʶ¼¸ß¡£
http://download.csdn.net/source/1712990 Õâ¸öÀïÃæÓÐÕû¸öPHPµÄ° ......