¹ØÓÚPHP¸üÐÂMYSQLµÄÎÊÌ⣡ - PHP / »ù´¡±à³Ì
Ò»¸ö¼òµ¥µÄ±íµ¥Ìá½»£¬²åÈëÊý¾Ý¿â²Ù×÷£¡
´íÎóÈçÏ£º
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in E:\wamp\www\Admin\wnewsave.php on line 66
񡜧NOTICES
½á¹¹£º
id name content datetime
noticesadd.php
PHP code:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="myform" method="post" action="wnewsave.php?action=notices_add">
<tr>
<td height="20" colspan="2"> </td>
</tr>
<tr>
<td width="20%" height="25" align="right">¹«¸æ±êÌ⣺</td>
<td width="1081"> <input name="n_title" type="text" id="n_title" size="30" maxlength="100"></td>
</tr>
<tr>
<td height="25" align="right">¹«¸æÄÚÈÝ£º</td>
<td> <textarea name="n_content" cols="50" rows="6" id="n_content"></textarea></td>
</tr>
<tr>
<td height="25" align="right">&n
Ïà¹ØÎÊ´ð£º
±±¾©2ÄêPHP¾ÑéÇó¼æÖ°
½Ó·Ö
·¹ý½Ó·Ö£¡.¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
jf~~~~~~~~~~~~~~Ö§³Ö
ßÀ¡£¡£ÎÒÃÇÐèÒª¼æÖ°£¬¿ÉÊÇÔõôÁªÏµÄãѽ£¿
¶¥¡£¡£¡£ »Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
º¼ÖÝÄãÈ¥²»È¥°¡ ¡£¡£¡£¡£¡ ......
×î½üÒ»¸öÏîÄ¿ÖÐÓöµ½Ò»¸öÎÊÌ⣺ÔÚÔÓеÄÒ»Ì×ϵͳÖÐ(php¿ª·¢)Ìí¼ÓһЩС¹¦ÄÜ(jsp¿ª·¢)£¬ÔÀ´Óû§ÏµÍ³¶¼ÊÇphp¿ª·¢µÄ£¬ÎÒÈçºÎÔÚjsp¿ª·¢µÄ¹¦ÄÜÖÐ×öµ½Óû§ÐÅÏ¢sessionͬ²½ÄØ£¿ ÓÐÈËÊÇ·ñÓÐ×ö¹ýÀàÒÔÏîÄ¿£¬ÏëÌýÌý´ó¼ÒµÄ¿´·¨
......
String sqlCount="select count(*) from usertable where username='"+
userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡
Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ
select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......
ÎÒÊǸöÐÂÊÖ£¬Íû¸ßÊÖ½â´ð
ÎÒÏÖÔÚÒѾ°²×°ÁËmysql£¬Ò²ÓÐmysqlµÄjdbc¡£µ«ÎÒÔõôÅäÖú󣬲ÅÄÜÔÚMyEclipseÀï²Ù×÷mysqlÄØ£¿Çë¸ßÊÖ˵Ïêϸµã
´ò¿ªMyeclipse----window---open perspective---MyEclipse database explorer-- ......
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Çý¶¯³ÌÐò¹ÜÀíÆ÷] δ·¢ÏÖÊý¾ÝÔ´Ãû³Æ²¢ÇÒδָ¶¨Ä¬ÈÏÇý¶¯³ÌÐò, SQL state IM002 in SQLConnect in D:\0\msc\msc\tel.php on line 44
Í ......