php.ini 中 error_reporting = E_ALL & ~E_NOTICE
重启web服务器
重启web服务器
解决方案 »
- 求教多表数据之间的逻辑关系
- 推荐一本php的书籍
- 求一PHP或者SQL语句
- 帮忙看看,刚学PHP,问题多多!
- 新手(100分)求插入函数,请高手帮忙.
- 请问php.exe, php-cgi.exe, php-win.exe 的区别
- 请问如何在apache中指定虚拟目录??
- 每天只要分享成功一次后就奖励一次免费参与合买机会,每天不管分享成功多少次都只算第一次。只奖励一次。
- 新手用集成开发环境,安装后apache访问不了??
- 购物车类将对象放入session中,存放的是地址还是?
- 请 xuzuning(唠叨)和 ustcfrank(阿卡波糖) 近来领分。谢谢解答关于数组变量的传递
- 关于用PHP操作ftp实现文件夹上传与下载
session_start();
include ("../util/checkSession.inc");
if ($_GET['Article_Id'])
{
$query="select Article_Name,Article_Content,Article_Id from bbs_article where Article_Id =$_GET[Article_Id] LIMIT 1" or die("数据库出错");
$updateName="Article_Content";
}
elseif ($_GET['Restore_Id'])
{
$query="select Restore_Id,Restore_Content from article_restore where Restore_Id =$_GET[Restore_Id] LIMIT 1" or die("数据库出错");
$updateName="Restore_Content";
}
else
{
echo "对不起.您现在访问的论坛出现了问题.";
}
$result=mysql_query("$query",$Con);
$myrow=mysql_fetch_array($result);
?><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>贴之修改</title>
</head><body>
<?
echo "
<form name='update' method='post' action='checkupdate.php?Article_Id=$_GET[Article_Id]&Restore_Id=$_GET[Restore_Id]' onsubmit='return validinput();'>";
?>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<?
if ($_GET['Article_Id'])
{
?>
<tr>
<td width="100%">
<p align="center"><input type="text" name="Article_Name" value="<?=$myrow['Article_Name']?>" size="20"></td>
</tr>
<?
}
else
{
?>
<input type="hidden" name="Article_Name" value="restore">
<?
}
?>
<tr>
<td width="100%">
<p align="center"><textarea rows="10" name="updateContent" cols="47"><?=$myrow[$updateName]?></textarea></td>
</tr>
<tr>
<td width="100%">
<p align="center"><input type="submit" value="修改" name="updateNotes"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</center>
</div>
</form></body></html>include文件:
<?
$Con=mysql_connect("localhost","root");
mysql_select_db("mybbs");
if(!session_is_registered("Personal_Name"))//没有注册session变量 name
{
echo "<script>location.href='../error/web_error.htm'</script>";
}
else
{
$query="select Personal_Id from personal_info where Personal_Name='$HTTP_SESSION_VARS[Personal_Name]' LIMIT 1";
$result=mysql_query("$query",$Con);
$myrow=mysql_fetch_array($result);
$Id=$myrow['Personal_Id'];
}
?>这就是我的代码.没有定义什么数组变量啊..
session_start();
include ("../util/checkSession.inc");
if(isset($_GET['Article_Id'])) {
.....至少你在该程序第一次运行时没有url变量不少人说php复杂,其实是由于使用了默认设置的原因。
其实只要在升级php时保留原来的php.ini文件,那么就不会有此感觉了
唉...还有什么更好的办法呢??谢谢~