û·¨ÁË mysql²åÈëhtmlÎÊÌâ
$chat_content=$player[p_name]."ÏòÊÀÈËչʾÁË <a class=\"display_item\" onclick=\"item_tips(this)\" title=\"$item_tips\">".$item[item_name]." </a>";
$item_tipsÊÇÒ»´ó¶ÎµÄhtml´úÂë
´íÎóÌáʾ
the right syntax to use near 'class="display_item" onclick="item_tips(this)" title="<table style='border: m' at line 1 mysql error number: 1064
Ó¦¸ÃÖ¸µÄÊÇÀïÃæº¬Óе¥ÒýºÅ' Èç¹ûÈ¥µôtitle=\"$item_tips\" ¾Í¿ÉÒÔ²åÈë
ÄÇÎÒÏÖÔÚÒªÔõôÑù²ÅÄܲåÈëÕâ¶Îhtml´úÂë ÓÃÁËhtmlentitiesºÍhtmlspecialchars¶¼²»¹ÜÓÃ
¼±
$sql="insert into ks_chat (chat_readname,chat_content) values ('ÊÀ½ç',$chat_content)"£»
¼±
תÒåÓÃ/£¬
or use µ¥ÒýÀ´½â¾ö£¡
function remSpecialChars($string) {
$string = stripslashes($string);
$string = eregi_replace("'","'",$string);
$string = eregi_replace('"','"',$string);
return $string;
}
function addSpecialChars($string) {
// $string = htmlspecialchars($string);
$string = eregi_replace("'","'",$string);
$string = eregi_replace('"','"',$string);
return $string;
}
·¹ý£¬Ñ§Ï°
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬ÕâÈý¸öÔÚwin7ÏÂʹÓûáÓÐʲô¼æÈÝÐÔÎÊÌâÂð£¿
ÓÉÓÚÎÒ×î½üÔÚʹÓÃwin7£¬¾ÍÀÁµÃ½øxpÁË£¡
×Ô¼ºÓÃwindows 2008ÓÐÒ»Äê¶àÁË£¬Ã»³öÏÖÈκÎÎÊÌâ¡£
win7²âÊÔ°æÒ²Óùý£¬²»»áÓÐʲôÎÊÌâµÄ£¬·ÅÐÄ¡£
µ±È»Äã×î ......
ÎÒÓÃÒ»¸öÑ»·ÍùÊý¾Ý¿âÀïÃæ´æÎļþ£¬±¾À´¿ÉÒÔ×÷ΪÎļþ´æ·ÅÊý¾Ý¿âÀïÃæÖ»·ÅÎļþµÄλÖõ쬵«ÊÇûÓа취×âµÄ·þÎñÆ÷ÍøÒ³¿Õ¼ä´óСÓÐÏÞÖÆÊý¾Ý¿âûÓÐÏÞÖÆ¡£Óï¾äÊÇÕâÑùµÄ
public static final DataBase.MAXSIZE=102 ......
MySqlÖвåÈ뵱ǰʱ¼äµÄ¸ÃÔõôд°¡£¿
now()
SQL code:
sqlÀïÊÇ£º
getdate()
ÒýÓÃ
now()
ѧϰ
SQL code:
select now();
SQL code:
TODAY()
?
SQL code:
select now();
/* ......
ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
¿ ......
MYSQL ½ØÈ¡Ò»¸öÊý¾Ý±íÖÐ,ijһ¸ö×Ö¶Î(fulltext) µÄǰÈý°Ù¸ö×Ö·û,·Åµ½¸Ã±íÏÂÁíÒ»¸ö×Ö¶Î(introtxt)Àï.
ÇóʵÏÖÕâ¸öЧ¹ûµÄÃüÁî
SQL code:
update ±í set introtxt=left(`fulltext`,300);
¶¥£¬Ñ§Ï°
SQL code: ......