开发者

Add,Update and Delete functionality in JQGrid

开发者 https://www.devze.com 2022-12-10 09:01 出处:网络
How 开发者_JAVA技巧can I do the add,update and delete functionality in the JQgrid.Please help me

How 开发者_JAVA技巧can I do the add,update and delete functionality in the JQgrid.Please help me

Thanks Ritz


I assume you know some basic commands in deleting and adding using php mysql:
Once, you click the "add button" or "delete button" this triggers or pass a value "add" or "del" to the server

editurl:"update.php?q=1",

update.php contains this line to get the value

$oper = $_REQUEST['oper'];

once you get the value you can use the switch command something like this:

switch ($oper){
   case "add":
     YOUR CODES HERE
   break;
   case "del":
     YOUR CODES HERE 
   break; 
}

hope this will help you to figure out
nphp101 [at] yc

0

精彩评论

暂无评论...
验证码 换一张
取 消