PHP ÖÆ×÷ͨѶ¼£¨Áù£©
×òÌìÎÒÃÇʵÏÖÁËÒ»¸ö¼òµ¥µÄËÑË÷¹¦ÄÜ£¬½ñÌìÎÒÏëÁËһϣ¬Æäʵ»¹ÓпÉÒԸĽøµÄµØÖ·£¬ÈçÖ±½ÓÓÃIndex.php´úÌæSearch.php¡£
ÐÞ¸ÄIndex.phpÎļþ£¬ÐÞ¸ÄÒ»ÏÂËÑË÷±íµ¥
<!---ËÑË÷¿ò--->
<!--ÕâÀïµÄËùÓÐֵǰÃæ¼Óǰ׺“S_”ÒÔÇø·Ö-->
<form id="form1" name="form1" method="get" action="Index.php">
ËÑË÷£º
<label>
<select name="mode" id="S_mode">
<option value="S_all" selected="selected">È«²¿</option>
<option value="S_name">ÐÕÃû</option>
<option value="S_birthday">ÉúÈÕ</option>
<option value="S_qq">QQ</option>
<option value="S_mobile">ÊÖ»ú</option>
<option value="S_email">ÓÊÏä</option>
<option value="S_address">µØÖ·</option>
</select>
</label>
<label>
<input name="word" type="text" id="S_word" />
</label>
<label>
<input type="submit" name="Submit" value="ËÑË÷" />
</label>
</form>
ÕâÀォ±íµ¥·½·¨¸ÄΪget £¬È¡ÏûÁËÏÂÀ¿òºÍÊäÈë¿òµÄS_ǰ׺£¬¶¯×÷¸ÄΪIndex.php
ÔÙÐÞ¸ÄÔÀ´µÄPHP´úÂë
<?php
include ('Config.php');
$word = $_GET['word']; //»ñµÃ¹Ø¼ü×Ö
$mode = $_GET['mode']; //»ñÈ¡ËÑË÷·½Ê½
if($_GET['word']==null)
{
echo '<title>Ê×Ò³</title>';
$sql = "SELECT * from `".SqlTableName."`";
}
else
{
echo '<title>',$_GET['word'],'</title>';
switch($_GET['mode'])
{
case 'S_all': $sql = 'SELECT * from `'.SqlDataBase.'`.`'.SqlTableName."`
WHERE `Name` LIKE '%$word%' OR `Birthday` LIKE '%$word%'
OR `QQ` LIKE '%$word%' OR `Mobile` LIKE '%$word%'
OR `Email` LIKE '%$word%' OR `Address` LIKE '%$word%'";break;
case 'S_name': $sql = 'SELECT * from `'.SqlDataBase
Ïà¹ØÎĵµ£º
PHPµÄËã·¨¶¼ÓÐÄÄЩÄØ£¿
ÎÒ»¹¼ÇµÃÉÏ´óѧÄÇ»áѧÊý¾Ý½á¹¹Ê±£¬Á˽âÁË:˳Ðò·¨¡¢Ã°ÅÝ·¨¡¢¶þ·Ö·¨ÒÔ¼°¶ÔÏßÐÔ±íÒÔ¼°Êý¾ÝÈëÕ»¡¢³öÕ»µÄ²Ù×÷¡£
PHPÖеÄ˳Ðò·¨¾ÍÊǶÔÊý×éÔªËصÄÖðÒ»±È½Ï¶øµÃµ½µÄ¡£
ÀýÈ磺
<?php
function order($php,$k)
{
$n = count($php); //¼ÆËãÊý×é¸öÊý
$php ......
¡¡×î½üÔÚÕÛÌÚ PHP + MYSQL
µÄ±à³Ì¡£Á˽âÁËһЩ PHP SQL ×¢Èë¹¥»÷
µÄ֪ʶ£¬ÓÚÊÇдÁËÕâƪÎÄÕ¡¡http://www.xiaohui.com/weekly/20070314.htm£¬×ܽáһϾÑé¡£ÔÚÎÒ¿´À´£¬Òý·¢ SQL ×¢Èë¹¥»÷
µÄÖ÷ÒªÔÒò£¬ÊÇÒòΪÒÔÏÂÁ½µãÔÒò£º
¡¡¡¡1. php ÅäÖÃÎļþ php.ini ÖÐµÄ magic_quotes_gpc
Ñ¡ÏîûÓдò¿ª£¬±»ÖÃΪ off
¡¡¡¡2. ¿ª·¢ ......
JAVAÎļþ²Ù×÷×ܽá
FileÀà
File f = new File(path);
pathΪʵ¼Ê·¾¶£¬¸Ã·¾¶¿ÉÒÔÊÇÎļþ£¬»òÎļþ¼Ð£¬Ò²¿ÉÒÔÊDz»´æÔڵġ£
f.exists() ¿ÉÒÔÅжϸ÷ÊÇ·ñ´æÔÚ¡£
f.isDirectory() ¿ÉÒÔÅжÏÊÇ·ñÊÇÎļþ¼Ð¡£
f.mkdirs(); µÝ¹é´´½¨Îļþ¼Ð
FileºÍÊäÈëÊä³öÁ÷Ö®¼äŦ´øFileInutStream£¬FileOutputStream
URL url = new URL(strUr ......
<?php
$p=new ReflectionClass(Àà¶ÔÏó);
$constants=$p->getConstants();//const ¶¨Òå³£Á¿
$properties=$p->getProperties();//ËùÓбäÁ¿ÊôÐÔ
$methods=$p->getMethods();//ËùÓз½·¨
//È«²¿ÒÔÊý×éÐÎÊÆ·µ»Ø
?> ......
phpÖж¨½ç·û<<<µÄ×÷Óà - [phpÓï
ÑÔ
]
[Time:2009-08-18]
°æȨÉùÃ÷
£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
ת×Ô:http://star210.blogbus.com/logs/44486135.html
ÒòΪPHPÊÇÒ»¸öWeb±à³ÌÓïÑÔ£¬ÔÚ±à³Ì¹ý³ÌÖÐÄÑÃâ»áÓöµ½ÓÃechoÀ´Êä³ö´ó¶ÎµÄhtmlºÍjavascript
½Å
±¾µÄÇé¿ö£¬Èç¹ûÓô«Í³µÄÊ ......