PHP难题!

来源:百度知道 编辑:UC知道 时间:2024/05/31 16:15:26
$sid = intval(trim($_POST['s']));

-------------------------------------------------------------
if($sid != "-1")
{
if($DB->fetch_one("SELECT parentid FROM `".$mysql_prefix."class` WHERE id = ".$sid) != "-1")
{
die("对不起,本系统不开放三级及三级以上目录 -_-");
}
}

------------------------------------------------------------
<select name="sclass" id="sclass">
<?
echo "<option value=\"-1\">根目录</option>";
$sortsql = $DB->query("SELECT * FROM `".$mysql_prefix."class` Order By sortlist Asc");
while($Result = $DB->fetch_array($sortsql)) {
$Parent = $Result['sortlist'];
$Parents = explode(",",$Parent);
$Count = count($Parents);
For($i=0;$i<$Count-2;$i++)
{
$Result['name'] =

money
cash
dingbat
fund
oof
pocket
Canadian dollar/ Austrilian dollar/Taiwan dollar

other country:
Chinese RMB (ren min bi)
Japanese Yin
English Pound
earopean Euro
When we use the word "love", we do not simply mean an attraction to a person of the opposite sex, which is a very narrow definition of the word. Love is emotional strength, which can support us no matter how dark the world around us becomes. In fact, throughout history people of many different cultures have regarded love as the noblest of human emotions.

As an example of the power of love, we should remember how the Chinese people of all nationalities respond to the call to help the victims of natural disasters every year. Although their incomes are still low by international standards, people all over the country do not hesitate to donate whatever they can ― be it money or goods ― to help their needy fellow citizens. Moreov