Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 单击“添加到购物车”按钮可在数据库上添加值_Php_Html_Jscript - Fatal编程技术网

Php 单击“添加到购物车”按钮可在数据库上添加值

Php 单击“添加到购物车”按钮可在数据库上添加值,php,html,jscript,Php,Html,Jscript,我希望我的“添加到购物车”按钮在名为“status”的列上的名为“items”的数据库表中添加值 我试过“点击”的方法,但没用 <a ref="#" class="button button-danger button-circle button-sim"> <i class="fa fa-cart-plus" on click=""></i> </a> 当点击时,我希望它显示一个警报,它现在在他们的购物车中 我知道第一行代码拼

我希望我的“添加到购物车”按钮在名为“status”的列上的名为“items”的数据库表中添加值

我试过“点击”的方法,但没用

 <a ref="#" class="button button-danger button-circle button-sim">
     <i class="fa fa-cart-plus" on click=""></i>
 </a>

当点击时,我希望它显示一个警报,它现在在他们的购物车中


我知道第一行代码拼错了,如果不修改就不能发布问题

你能给我们看看php和js代码吗?我们如何用一个html示例来回答您的问题?我没有这方面的代码,我只是尝试在另一个问题中添加代码。我没有代码,也不知道如何做,这就是我为什么要问的原因。我是编程新手,但我真的很想学习。你能给我们看看php和js代码吗?我们如何用一个html示例来回答您的问题?我没有这方面的代码,我只是尝试在另一个问题中添加代码。我没有代码,也不知道如何做,这就是我为什么要问的原因。我是编程新手,但我真的很想学习。