小弟初学PHP。。。。。问下表单的提交问题 $connec=mysql_connect("localhost","root","vertrigo") or die("不能连接数据库服务器: ".mysql_error()); mysql_select_db("data",$connec) or die ("不能选择数据库: ".mysql_error()); mysql_query("set names 'utf8'"); ?> if($_POST["id"] and $_POST["action"]=="del") { $sql="delete from class where id=$_POST[id]"; mysql_query($sql,$connec); echo(""); } ?>
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn