À´Ô´£º°ÂË÷Íø
×ÀÃaeÖÐÐÄ(Èý)ÐÞ¸ÄÊý¾Ý¿a
×÷Õߣºelong
ÏÂÃaeÕa¸o³ÌÐoÔÚÄaÊaÈeidºo¾Í°ÑÄǸoidµÄÊý¾ÝÁгoÀ´¡£È»ºoÄa¾Í¿ÉÒÔÐ޸ĺoдÈeÁË.
Êý¾Ý¿aµÄÊý¾Ý¸uÐÂ
if(isset($id))
{
if(!mysql_connect("localhost","Óû§Ãu","ÃÜÂe"))
{echo"ÎÞ*¨Áª½ÓÊý¾Ý¿a";
exit();
}
if(isset($url))
{
$query="update $jpg set id='$id',url='$url',mess='$mess',
fromx='$fromx',url1='$url1',mess1='$mess1',fromx1='$fromx1',url2='$url2',
mess2='$mess2',fromx2='$fromx2',url3='$url3',mess3='$mess3',fromx3='$fromx3'
where id='$id'" ;
$result=mysql_db_query("elong",$query); //Ö´ÐÐдÈe
if (!$result)
{echo "*¢Éu´iÎo!";
exit();
}
echo "$id ÒѾ¸uÐÂ!
";
echo "
n
n
ID | $id |
n
n
urlµØÖ* | $url |
n
n
Сͼ | $mess |
n
n
˵Ã÷ | $fromx |
n
n
urlµØÖ*1 | $url1 |
n
n
Сͼ1 | $mess1 |
n
n
˵Ã÷1 | $fromx1 |
n
n
urlµØÖ*2 | $url2 |
n
n
Сͼ2 | $mess2 |
n
n
˵Ã÷2 | $fromx2 |
n
n
urlµØÖ*3 | $url3 |
n
n
Сͼ3 | $mess3 |
n
n
˵Ã÷3 | $fromx3 |
n
n";
echo "
»Øµ½Ê×Ò³";
exit();
}
$query="SELECT id,url,mess,fromx,url1,mess1,fromx1,url2,mess2,fromx2,url3,mess3,fromx3 from $jpg
where id='$id'" ;
$result=mysql_db_query("elong",$query);
if (!$result)
{echo "*¢Éu´iÎo!";
exit();
}
$r=mysql_fetch_array($result);
$id = $r["id"];
$url = $r["url"];
$mess = $r["mess"];
$fromx = $r["fromx"];
$url1 = $r["url1"];
$mess1 = $r["mess1"];
$fromx1 = $r["fromx1"];
$url2 = $r["url2"];
$mess2 = $r["mess2"];
$fromx2 = $r["fromx2"];
$url3 = $r["url3"];
$mess3 = $r["mess3"];
$fromx3 = $r["fromx3"];
echo"
n";
}
else
{?>
ÇeÊa*ÅÐeÒª¸u¸ÄµÄid:
<?}?>