这个功能怎么实现?谁有相关的代码?在线等!!! 很简单啊 ,你取出这条数据的时候,你肯定能得到这条数据的的ID,然后在“点击这个编辑按钮”的时候把ID当成参数传过去,检索出数据,当你编辑完成提交的时候,同样利用这个ID修改这条数据库记录啊update tablename set ........... where id = '$id'; //提交修改 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 OK.<?PHPif($HTTP_POST_VARS['title']){ 这里写 update}?><html><head><title></title></head><body><?php$getID=$HTTP_GET_VARS['id']$queryString="select id,title,content from article where id=$getID";$queryResult=@mysql_query($queryString);$queryArray=@mysql_fetch_array($queryResult);?><form method="post" action=""><input type="text" name="title" value="<?php echo $queryArray[title];?>"><input type="textarea" name="content" value="<?php echo $queryArray[content];?>"><input type="submit"></form></body></html> 如果我这条记录是从两个表中查询得来的,编辑修改后,怎么才能让其分别保存在各在的表中,这个update语句怎么写?? 如果我这条记录是从两个表中查询得来的,编辑修改后,怎么才能让其分别保存在各在的表中,这个update语句怎么写?? update 表名 set 列名=$????? where id=? PHP删除中文正则表达式 php无法插入数据到mssql2005 string经过zip之后存在SQL Server的image字段,PHP怎么解开显示啊? 求一个BMG转JPG等其他格式的方法 求一个 sql 拼接的问题 ?? 用file_get_contents()函数有点慢,fsockopen函数可以取得某个网页的内容吗? 有空进来帮个忙 关于MYSQL递归的问题,谁能帮帮我? php高手请进!!! 新手求教下 PHP PEAR DB 的问题 【公告】心空论坛2.0正式发布 字符串中的换行符????在线等!!
<html>
<head><title></title>
</head>
<body>
<?php
$getID=$HTTP_GET_VARS['id']
$queryString="select id,title,content from article where id=$getID";
$queryResult=@mysql_query($queryString);
$queryArray=@mysql_fetch_array($queryResult);
?>
<form method="post" action="">
<input type="text" name="title" value="<?php echo $queryArray[title];?>">
<input type="textarea" name="content" value="<?php echo $queryArray[content];?>">
<input type="submit">
</form>
</body>
</html>