Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

û·¨ÁË 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="&lt;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("'","&#039;",$string);
$string = eregi_replace('"','&quot;',$string);
return $string;
}

function addSpecialChars($string) {
// $string = htmlspecialchars($string);
$string = eregi_replace("&#039;","'",$string);
$string = eregi_replace('&quot;','"',$string);
return $string;
}

·¹ý£¬Ñ§Ï°



Ïà¹ØÎÊ´ð£º

apache+PHP+mysqlÔÚwin7ÏÂʹÓÃ

ÈçÌ⣬ÕâÈý¸öÔÚwin7ÏÂʹÓûáÓÐʲô¼æÈÝÐÔÎÊÌâÂð£¿
ÓÉÓÚÎÒ×î½üÔÚʹÓÃwin7£¬¾ÍÀÁµÃ½øxpÁË£¡
×Ô¼ºÓÃwindows 2008ÓÐÒ»Äê¶àÁË£¬Ã»³öÏÖÈκÎÎÊÌâ¡£

win7²âÊÔ°æÒ²Óùý£¬²»»áÓÐʲôÎÊÌâµÄ£¬·ÅÐÄ¡£

µ±È»Äã×î ......

MySQLÊý¾Ý°ü¹ý´ó

ÎÒÓÃÒ»¸öÑ­»·ÍùÊý¾Ý¿âÀïÃæ´æÎļþ£¬±¾À´¿ÉÒÔ×÷ΪÎļþ´æ·ÅÊý¾Ý¿âÀïÃæÖ»·ÅÎļþµÄλÖõ쬵«ÊÇûÓа취×âµÄ·þÎñÆ÷ÍøÒ³¿Õ¼ä´óСÓÐÏÞÖÆÊý¾Ý¿âûÓÐÏÞÖÆ¡£Óï¾äÊÇÕâÑùµÄ


public static final DataBase.MAXSIZE=102 ......

MySqlÎÊÌâ

MySqlÖвåÈ뵱ǰʱ¼äµÄ¸ÃÔõôд°¡£¿
now()

SQL code:

sqlÀïÊÇ£º
getdate()

ÒýÓÃ
now()


ѧϰ

SQL code:
select now();

SQL code:
TODAY()
?

SQL code:
select now();
/* ......

MYSQL°²×°Ê§°Ü

ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£º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 Êý¾Ý½ØÈ¡

MYSQL ½ØÈ¡Ò»¸öÊý¾Ý±íÖÐ,ijһ¸ö×Ö¶Î(fulltext) µÄǰÈý°Ù¸ö×Ö·û,·Åµ½¸Ã±íÏÂÁíÒ»¸ö×Ö¶Î(introtxt)Àï.
ÇóʵÏÖÕâ¸öЧ¹ûµÄÃüÁî
SQL code:
update ±í set introtxt=left(`fulltext`,300);

¶¥£¬Ñ§Ï°

SQL code: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ