我在domain.com上构建了wp,在127.0.0.1上构建了其他wp。现在,我在domain.com上从后端转储数据库,并使用命令将数据库转储到本地机器上的mysql数据库中。
mysqldump -u root -p wpdatabase > back.sql #after i connect the remote vps
#download the back.sql file into local machine with filezilla on /home/back.sql
mysql -u root -ppassword wp_test < /home/back.
我用ajax更新了-when,他改变了,但他只接受了'id‘,而不是新变量
但是我想通过Ajax将我的电子邮件插入数据库。我不希望我的页面被重定向,因为每次刷新页面时,都会将空值插入到数据库中。
1)和ajax
function editdata(str){
var id= str;
var name = $('#nameofequipe-'+str).val();
$.ajax({
type:"post",
url: "<?php echo API;?>equipe/update
我安装了backpack-demo包,并且能够注册一个新用户。现在,当我想要添加一个新的权限角色或者需要在数据库中插入新记录的其他东西时,我得到了以下错误消息:"BadMethodCallException in Builder.php第2450行:调用未定义的方法Illuminate\Database\Query\Builder::getCastedAttributes()“
你知道怎么解决吗?
thx,m