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

¡¾PHP¡¿Ñ¡ÔñÌâÌâ¿âϵͳV1.0

Õâ¸öϵͳÆäʵÊÇÁ·Ï°php»ù±¾Óï·¨ºÍMySQLµÄ»ù±¾²éѯÓï¾ä¡£¸øÒ»ÆðѧϰµÄÅóÓÑ·ÖÏí¡£ ^_^
ÔÚphpÎļþÖУ¬Ë«Ð±¸ÜºóÃæÊÇ×¢ÊÍÓï¾ä£¬ÎÒÓÃÓ¢ÎÄдµÄ×¢ÊÍ¡£
Õû¸öϵͳËù°üº¬µÄ.htmºÍ.phpÎļþÓУº
add_que.htm——Ìí¼ÓÐÂÌâµÄÒ³Ãæ
insert.php——ÏÔʾÌí¼ÓÐÂÌâÐÅÏ¢µÄÒ³Ãæ
questionlist.php——ËùÓÐÎÊÌâÁбíÒ³Ãæ
search.htm——ËÑË÷ÎÊÌâµÄÒ³Ãæ
result.php——ËÑË÷½á¹ûµÄÒ³Ãæ
MysqlÄÚ£¬Ð½¨ÁË“query”µÄÊý¾Ý¿â£¬ÄÚ½¨“list”µÄÊý¾Ý±í¡£±íÄÚº¬ÓÐ7Ïid,question,a,b,c,d,key¡£questionΪÌâ¸É£¬a,b,c,dΪËĸöÑ¡ÏkeyΪ´ð°¸µÄÑ¡Ïî¡£
ÏÂÃæÊǸ÷¸öÎļþµÄ´úÂë.
/*add_que.htm*/----------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="index.css" mce_href="index.css" rel="stylesheet" type="text/css"/>
<title>Add Question</title>
</head>
<body>
<div style="margin: 0px auto;margin-top:100px; width: 500px;">
<form name="input" action="insert.php" method="get">
Please put your own question.<br />
<textarea cols="50" rows="5" name="question">

A.
B.
C.
D.
Choose The Right Answer:

A
B
C
D

Back To Question List
Search Question
/*insert.php*/----------------------------------------------------------------------
<title>Insert Page</title>
<body style="margin:0px auto; margin-top:180px; margin-left:450px; width: 500px;"></body>
<?php
$db=mysql_connect("localhost:3321","root","root","query");
mysql_set_charset('gb2312',$db);
if(!$db)
{
die('Connect Failed:'.mysql_error());
}
mysql_select_db("query",$db);
$sql="INSERT INTO `list` (`question`,`a`,`b`,`c`,`d`,`key`) VALUES ('$_GET[question]','$


Ïà¹ØÎĵµ£º

½â¾öPHPÄÚ´æÒç³öµÄÎÊÌâ

Allowed memory size of 33554432 bytes exhausted (tried to allocate 4554 bytes)
      ÓÐʱºòÎÒÃÇÔÚÔËÐÐphp³ÌÐòµÄʱºò»á·¢ÏÖ Fatal Error: Out of memory ÕâÑùµÄÌáʾ¡£ ÕâÓпÉÄÜÊdzÌÐòÖÐÓõ½ÁË´óÁ¿Á˱äÁ¿ºÍ¶ÔÏ󣬵¼Ö·ÖÅäµÄÄÚ´æ²»¹»Óá£ÎÒ¾ÍÓöµ½ÕâÑùÒ»¸ö´íÎóÔõô¸ÄÒ²¸Ä²»ÁË£¬ºóÀ´ÉÏÍø²éÁËһР......

±»Ò»ÈºphpÖÁÉÏÖ÷ÒåÕßÈÇÄÕÁË

¡¡¡¡ÎÒ¿ª·¢µÄСվ£ºhttp://www.asprain.com£¬»¶Ó­¹ÛĦ¡¢ÌåÑ飡 
¡¡¡¡°¡£¬½ñÌì¿´µ½ºÜ¶àÈË˵ÎÒÂîPHP³ÌÐòÔ±ÊÇÔÚ³´×÷£¬Ä¿µÄÊÇÍÆ¹ãÎÒµÄÂÛ̳³ÌÐò¡£»°Ëµ£¬ËäÈ»ÎÒ֮ǰһֱºÜÏëÏë°ì·¨Ìá¸ß×Ô¼ºÐ´µÄÄǸö³ÌÐòµÄÖªÃû¶È¡£ÎÒ°ÑÎÒµÄСվ½éÉܸøÎÒµÄËùÓеĺÃÓÑ£¬ÇëËûÃǿڿÚÏà´«¡£µ«ÊÇÎÒȷʵдÕâÆªÎÄÕÂÊÇûÓг´×÷Ä¿µÄµÄ¡£Ô­ÒòºÜ¼òµ¥£ºÎÒÐ ......

PHPÍæ×ªMySQLÖ®Íâ¼üÔ¼Êø ÄÏÈý·½

ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«Ñ§Ï°ÈçºÎͨ¹ýPHP 5µÄÒ»¸ö»ù±¾³éÏóÀàʹÓÃÍâ¼üÔ¼ÊøÀ´¸üÐÂÁ½¸öInnoDB±íµÄÊý¾Ý¡£ ÎÒÃǽ«Í¨¹ý¾ßÌåʾÀýÀ´ËµÃ÷ÈçºÎͨ¹ý·þÎñÆ÷¶Ë½Å±¾ÓïÑÔÀ´Ê¹ÓÃÍâ¼üÔ¼Êø¡£
¡¡¡¡Ò»¡¢ÀûÓÃÍâ¼üÔ¼Êø¸üÐÂMySQLÖеÄÊý¾Ý
¡¡¡¡ÏÖÔÚ£¬×îÁ÷ÐеĿªÔ´¹ØÏµÐÍÊý¾Ý¿â¹ÜÀíϵͳ·ÇMySQLĪÊô£¬¶øMySQLÓÖÖ§³Ö¶à¸ö´æ´¢ÒýÇæ£¬ÆäÖÐĬÈϵÄÒ²ÊÇËٶȽϿìµÄ´ ......

ÓÃEclipse¿ª·¢PHPÏîÄ¿

Ò»¡¢°²×°
³õ´ÎʹÓÃEclipse¿ª·¢PHPÏîÄ¿£¬°²×°»¹Êǵû¨·ÑÒ»¶¨µÄʱ¼äµÄ£¬×Ðϸ¿´Ò»Ï±¾
ÎÄ£¬¿ÉÒÔ½ÚÔ¼²»ÉÙʱ¼ä¡£Ê×ÏÈ¡£EclipseÏîÄ¿ÊÇÓÃJava¿ª·¢µÄ£¬ËùÒÔÐèÒªÔÚJavaµÄÐéÄâ»úÉÏÔËÐУ¬¶øEclipseȱʡÊÇûÓдøÐéÄâ»úµÄ£¬ËùÒÔÈç
¹ûÄãµÄ»úÆ÷ÉÏûÓа²×°JavaÐéÄâ»ú£¨Ò»°ãµÄWindows»úÆ÷É϶¼Ã»°²×°£©£¬ÄãÏȵð²×°Ò»¸ö£¬ÔÚÕâÀï˳±ã˵һÏ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ