我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

获取数据库中的产品ID

I want to get the product id in the database and then add a quantity when i press the add button to the product. The code is working but it only get the

<?php

global $con;
$ip = getIp();

= +"; ?>

<?php 
}
?>

Your html is completely wrong, you should check how to create forms in html. A button should not be inside of a link. You should add hidden input.

近期文章

  • GroupBy Query Laravel 5.1
  • PHP:$ row undefined变量[关闭]
  • 如何使用CakePHP上的数据库postgres参考设置database.config信息?
  • symfony2中的复选框验证
  • php pdo - 检索结果和行数 - 便携式解决方案
  • 使用jquery向下滚动到#lower div
  • 如何在PHP中自动增加内部版本号
  • php并排加载数据库
  • 如何从今天开始计算5周的日期[重复]
  • java编程思想 并发 21.7.5
  • if / else在php脚本中不能处理ajax请求
  • 针对不同查询返回相同的计数值
  • 如何使多个复选框与PHP和SQL一起使用
  • 无法使用Angular JS - Controller从数据库中获取数据
  • Laravel模型只返回结果的一半时间
  • Prestashop覆盖商店类
  • 无法对数据库执行查询
  • 未指定php.ini内容类型
  • sql更新表无法正常工作
  • 动态创建配置文件

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华