phpÏòSQL SERVER 2000Êý¾Ý¿âÖвåÈëÈÕÆÚʱ¼ä£¿
´óÏÀÃÇ£ºÏÂÃæµÄ³ÌÐòÔËÐÐʱ×ÜÌáʾÕâÑùµÄ´íÎó£º
Warning: mssql_query() [function.mssql-query]: message: 'date' ²»ÊÇ¿ÉÒÔʶ±ðµÄ º¯ÊýÃû¡£ (severity 15) in F:\guest\sub_guest.php on line 20
Warning: mssql_query() [function.mssql-query]: Query failed in F:\guest\sub_guest.php on line 20
°ï濴һϣ¬Ð»Ð»
<?php session_start();?>
<?php
$conn=mssql_connect("WWW-LIUWEI","","") or die("Êý¾Ý¿âÁ¬½Ó´íÎó£¡");
mssql_select_db("guest",$conn);
function unhtml($content)
{
$content=htmlspecialchars($content);
$content=str_replace(chr(13)," <br>",$content);
$content=str_replace(chr(13)," ",$content);
$content=str_replace(chr(13)," ",$content);
return trim($content);
}
$title=$_POST[title];
$content=$_POST[content];
$username=$_POST[username];
$sql="insert into guest(guest_title,guest_content,guest_username,submit_date)values('$title','$content','$username',date('Y-m-d'))";
$query=mssql_query($sql,$conn);?>
<script language="javascript">
window.alert(" <?php echo "ÁôÑԳɹ¦£¡"?>");
window.opener.parent.location="index.php";
window.close();
Ïà¹ØÎÊ´ð£º
1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖÆµÈ¿ª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......
ÇëÎÊÏÂÄܲ»ÄÜÔÙwindows϶¨ÆÚÇå¿ÕmysqlÒ»¸ö±íÖеÄÈ«²¿Êý¾Ý£¬ÓÃPHPʵÏÖ£¡
лл¸÷λÁË
¾Í±ÈÈçÒ»¸öÐÇÆÚÇå¿ÕÒ»´Î
±ÈÈçÿ¸öÐÇÆÚÁùÁãµãÇå¿ÕÒ»´Î£¡
ллÁË
¼Æ»®ÈÎÎñ...php....sql...truncate....OK
Äã¾ÍÕâ½ÓÔÚҳà ......
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001'
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
sqlserver2005 ½¨Á¢µÄÊý¾Ý¿â£¬ÓëÊÖ³Öpda´«ÊäÊý¾Ý£¬×î½üͻȻ³öÏÖÎÞ·¨´«µÝÊý¾ÝµÄÎÊÌ⣬pda¶ËÌáʾµÄ´íÎóʱoutofmemoryexception£¬µ«ÊÇpdaÉÏÃæµÄÈÝÁ¿Ã»ÓÐÎÊÌ⣬
sqlserverµÄÈÕ×ÓÉϵĴíÎóÈçÏ£º
ÈÕÆÚ 2010-1-25 14:45: ......
tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......