欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

php配合jquery实现增删操作

程序员文章站 2024-02-10 12:47:04
...
后台使用php,前台引用jquery,实现增删操作,代码如下:
  
  ("Content-type: text/html; charset=utf-8"         
 ("set charaset set utf-8" =@["message" =@["shanchu" ="PHP基础练习" =("localhost","root","" 
 mysql_set_charset('utf-8', ("dbl", 
 ="select `message` ,`time`,`id` from message order by id desc limit 0,30" 
 =(, =('Y-m-d h:i:s', 
 
 =();
  ((["submits" (!["message"]== =("insert into message (message,time) values('%s','%s')", 
 ['message'], (,      (["message"]==  ""  ("Location:http://localhost/table.php"  
 ((["ClearTd"]) && (['ClearTd' ="delete from message where id=".['ClearTd'     (, ("Location:http://localhost/table.php"  ?>