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

PHPÅжÏÒ³Ãæ´«Èë²ÎÊýÊÇ·ñºÏ·¨ - PHP / »ù´¡±à³Ì

<?php
if (isset($_GET['cid'])&&(!is_numeric($_GET['cid']))) {NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');}
$nLink = $db->SelectSQL("SELECT `ColumnRela`,`ColumnName` from `" . $dbprefix . "column` WHERE `ID` = '" . $_GET['cid'] . "'");
if (isset($_GET['cid'])&&(count($nLink)==0)){NewUrl (1,'²»´æÔڵķÖÀà!','-1');}
?>

ÕâÀïΪҳÃæ½ÓÊÕÁËÒ»¸öÃûΪcidµÄ²ÎÊý£¬ÎÒÏëµ±Õâ¸ö²ÎÊý´æÔÚµÄʱºò²ÅÅжÏËüÊÇ·ñÊǸöºÏ·¨µÄ²ÎÊýÀàÐͺÍÔÚÊý¾Ý¿âÊÇ·ñ´æÔÚ£¬Õâ¸öÇ°ÃæÀàÐÍÅжÏòËÆû´í£¬ºóÃæÅжÏÔÚÊý¾Ý¿âÀïÊÇ·ñ´æÔÚºÃÏñ³öÁË´íÎ󣬵±Õâ¸ö²ÎÊýΪ¿ÕʱҲ×ÜÌá'²»´æÔڵķÖÀ࣡'

ÄÄλ¸ßÈËÀ´Ö¸µãÒ»ÏÂÎÊÌâ³öÔÚÄÄÀ
count($nLink)==0ÕâÊÇʲôÒâ˼°¡

//if (isset($_GET['cid']) && $_GET['cid'] &&(count($nLink)==0)){
// NewUrl (1,'²»´æÔڵķÖÀà!','-1');
//}

Ϊ¿ÕµÄÇé¿öÄãûÓÐÔÚµÚÒ»²½ÀÂǵ½£¬×ÔÈ»¾ÍÅÜÁËÏÂÃæÀ´·³ÄãÁË£¬²éѯһ¸öIDΪ¿ÕµÄ½á¹û¼¯ÄãÈ¥countÒ²ÊÇ0¡£°ÑµÚÒ»²½È¥µôµã¶«Î÷¾Í¿ÉÒÔ
PHP code:
if (is_numeric($_GET['cid']))) {NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');}


#3Â¥Õý½â.żÊÇС²ËÄñ.

isset($_GET['cid'])ÅжÏÍêȫûÓбØÒª£¬ÄãÖ»Òª´«ÁËcid£¬ÄÄÅÂËüÊǿյģ¬isset($_GET['cid'])ÒÀÈ»ÊÇÕ棡

<?php
if (isset($_GET['cid'])&&(!is_numeric($_GET['cid']))) 
{  
  NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');

}
//µ±Õâ¸ö²


Ïà¹ØÎÊ´ð£º

php »ñÈ¡Ò³ÃæÄÚÈÝ - PHP / »ù´¡±à³Ì

Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌøתҳÃæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

PHPÈçºÎʵÏÖÓòÃûµÄ×Ô¶¯Ìøת... - PHP / »ù´¡±à³Ì

ÏÖÓÐÒ»PHP¿Õ¼ä£¬Ö§³ÖMYSQLÊý¾Ý¿â
Ϊ½ÚÊ¡·ÑÓã¬ÏÖÏëͨ¹ýÓòÃûתÏòĿ¼ÐÎʽ½øÐйÜÀí£¨¼´½«ÓòÃûA¼Ç¼£Û°üÀ¨¶¥¼¶ÓòÃû¼°¶þ¼¶ÓòÃû£Ý¶¼Ö¸Ïòͬһ¿Õ¼ä£©
È磺·ÃÎÊÓòÃû abcd.cn Ö±½Ó·ÃÎÊÍøÕ¾¸ùĿ¼
·ÃÎʶþ¼¶ÓòÃû ef.abcd.cn ......

php±à³ÌÓÃʲô¿ª·¢¹¤¾ß±È½ÏºÃ - PHP / ¿ªÔ´×ÊÔ´

ÇëÎʸ÷룬php±à³ÌÓÃʲô¿ª·¢¹¤¾ß±È½ÏºÃ°¡£¿°³ÕýÔÚѧ¡£
ÊÇÔÚwindowsϵġ£

×îºÃµÄÊÇzend studio

phpºÃѧÂð£¿

Ì«ºÃѧ£¬ÈçÓÐCµÄ»ù´¡¸üºÃ

PHPÈëÃÅ»¹ÊÇÂù¼òµ¥µÄ£¬PHP¿ª·¢¹¤¾ßEditplus£¬zend studio¶¼¿ÉÒÔ£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ