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

Áª¶¯ÏÂÀ­Áбí php

 ÕÒµ½Ò»¸öÄÜÓõĠ ·ÖÏí¸øÄã°É
¸ÕÒѾ­ÔÚ±¾»ú×ö¹ýÈÏÕæ²âÊÔ£¬¾ø¶ÔÎÞÎÊÌâ
£¨±í½á¹¹:
id ±íID£¨Î¨Ò»£©
title ¸÷Àà±êÌâ
flid Àà±ðµÄID £¨´óÀàΪ1 ÖÐÀàΪ2 СÀàΪ3£©
pid ÉÏÀàµÄID£¨´óÀà¾Í¸ú´óÀ࣬Ìá½»ÖÐÀàµÄʱºòÕâµØ·½Ð´´óÀàµÄID£¬ÌύСÀàµÄʱºòдÖÐÀàµÄID£© £©
<?php
   $link=mysql_connect("localhost","root","root") or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Ó´íÎó".mysql_error());
   mysql_select_db("sanji",$link) or die("Êý¾Ý¿â·ÃÎÊ´íÎó".mysql_error());
   mysql_query("set character set gb2312");
     mysql_query("set names gb2312");
?>
<html>
<head>
<title>ÏÂÀ­¿òÁ¬¶¯</title>
</head>
<body>
<script language="JavaScript">
<!--
var subcat = new Array();
<?
$i=0;
$sql="select * from sanji where flid=2";
$query=mysql_query($sql,$link);
while($arr=mysql_fetch_array($query))
{
echo "subcat[".$i++."] = new Array('".$arr["pid"]."','".$arr["title"]."','".$arr["id"]."');\n";
}
?>
var subcat2 = new Array();
<?
$i=0;
$sql="select * from sanji where flid=3";
$query=mysql_query($sql,$link);
while($arr=mysql_fetch_array($query))
{
echo "subcat2[".$i++."] = new Array('".$arr["pid"]."','".$arr["title"]."','".$arr["id"]."');\n";
}
?>
function changeselect1(locationid)
{
document.form1.s2.length = 0;
document.form1.s2.options[0] = new Option('==ÇëÑ¡Ôñ==','');
for (i=0; i<subcat.length; i++)
{
if (subcat[i][0] == locationid)
{document.form1.s2.options[document.form1.s2.length] = new Option(subcat[i][1], subcat[i][2]);}
}
}
function changeselect2(locationid)
{
document.form1.s3.length = 0;
document.form1.s3.options[0] = new Option('==ÇëÑ¡Ôñ==','');
for (i=0; i<subcat2.length; i++)
{
if (subcat2[i][0] == locationid)
{document.form1.s3.options[document.form1.s3.length] = new Option(subcat2[i][1], subcat2[i][2]);}
}
}
//-->
</script>
Èý¼¶Áª¶¯£º<BR>
<form name="form1">
<select name="s1" onChange="changeselect1(this.value


Ïà¹ØÎĵµ£º

64λ¶¯Ì¬phpÀ©Õ¹¿âµÄ±àÒë

64λ¶¯Ì¬phpÀ©Õ¹¿âµÄ±àÒë
 ¹¤×÷ÉÏÐèÒª£¬Õâ¸öÎÊÌâÕÛÌÚÁËÒ»Õó×Ó¡£²»¹ýµ±±àÒë³É¹¦Ö®ºó£¬ÐÄÀﻹÊÇÏ൱µÄÐË·Ü£¬¸ÐÊܵ½ÁËÒ»Öֳɾ͸С£Ò²Êǹ¤×÷ÖеÄÒ»ÖÖÀÖȤ¡£
ÏÖÔÚ½«Õû¸ö¹ý³ÌдÏÂÀ´£¬ÒÔ±¸ºóÐøÖ®Ðè¡£
a.shared object
(1) download and install the apache
´ÓÍøÂçÖÐÏÂÔØapache-2.0.48.tar.gz
´æÖÁ/home/tmp
cd /home/ ......

PHPץȡÐÂÀ˶ÁÊ鯵µÀµÄС˵£¬Éú³Éµç×ÓÊé

//Ï뿴ʲôµç×ÓÊ飬ÏÈÈ¥ÐÂÀ˶ÁÊéËÑË÷£¬È»ºóÌîÈë¶ÔÓ¦µÄ²ÎÊý¼´¿É
//http://vip.book.sina.com.cn/
//µç×ÓÊé²ÎÊý
$array_book[0] = 38884;     //С˵id
$array_book[1] = 22172;    //ÕÂ½ÚÆðʼid
$array_book[2] = 32533;   //Õ½ڽáÊøid
$array_book[3] = 'ÖйúÌØÖÖ²¿¶Ó ......

PHP ·¢ËÍÓʼþ

 
PHP ·¢ËÍÓʼþ
×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ÐÞ¸Ä:2007-06-17 ä¯ÀÀ:14208 ::  :: 
 PHP Sessions
PHP allows you to send e-mails directly from a script.
PHPÔÊÐíÄãͨ¹ý½Å±¾Ö±½Ó·¢ËÍe-mail¡£
The PHP mail() Function
PHP mail()º¯Êý
The PHP m ......

phpµÄsessionÒªÔÚÆäËûÒ³ÃæÔõôµÃµ½

²»ÊǺÜÔÞͬʹÓÃsession   ÿһ¸öphpµÄÒ³ÃæÔÚµ÷ÓÃsessionµÄʱºò¶¼±ØÐëÏÈÉùÃ÷session¡£
ÀýÈ磺ÔÚphpÎļþµÄ×îÇ°ÃæÉùÃ÷session;
<?php
session_start();//ÉùÃ÷session
$_SESSION['id']=$_POST['id'];//¸³Öµ
?>
Èç¹û²»ÕâÑùÉùÃ÷µÄ»°£¬Ò²Ãâ¾ÍÎÞ·¨»ñµÃÒѾ­¶¨ÒåºÃµÄsessio ......

php×ܽᣨ3£©

ÆÕͨË÷Òý ¹Ø×¢Õâ¸öÁРΨһË÷Òý Ö÷¼ü ¶àÁÐË÷Òý ¹Ø×¢¶à¸öÁР  Àý£º¶àÁÐË÷Òý F1   F2   F3  µ¥²éF2»òF3Ë÷ÒýÎÞЧ Ë÷ÒýÊÇΪÁ˼ӿì¼ìË÷ Êý¾Ý¿â µÚÒ»·¶Ê½£º  Ò»¸ö±íÖеÄÁÐÓ¦¸ÃÊDz»¿ÉÔٷֵģ¬È·±£ÁеÄÔ­×ÓÐÔ µÚ¶þ·¶Ê½£º  Ö»ÓÐÖ÷¼ü²ÅÄܱíÏÖÊý¾ÝÌØÕ÷£¬¶ø·ÇÖ÷¼üÁл¥²»¸ÉÉæ£¬È·±£Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ