这句可简单写: mysql_query("INSERT INTO book1 (name,content,mail,qq,date) VALUES ('$getname', '$getcontent', '$getmail','$getqq','Now()');这样写试试: mysql_query("delete from book1 where id='$getids'");
上面那句写漏了 mysql_query("INSERT INTO book1 (name,content,mail,qq,date) VALUES ('$getname', '$getcontent', '$getmail','$getqq','Now()')") ;
mysql_query("delete from book1 where id={$variables}");很多朋友推荐的写法但是我比较喜欢extra一下。。
mysql_query("INSERT INTO book1 (name,content,mail,qq,date) VALUES ('$getname', '$getcontent', '$getmail','$getqq','Now()');这样写试试:
mysql_query("delete from book1 where id='$getids'");
mysql_query("INSERT INTO book1 (name,content,mail,qq,date) VALUES ('$getname', '$getcontent', '$getmail','$getqq','Now()')") ;