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

php help,如何显示我自己的“订单”或提交订单

I'm creating code for "transaction logs" for users to check their own order list.

I can probably echo like this

<th>Order ID</th> 
<td><?echo $row->orderid?></td>

but then again I want to know: how do I call my own order? So specifically I'm using userID 1.

Here are the transactions made by userID/CustomerID 1

myDatabase

How would I achieve that?

Select * from tablename where customerID = 1

just change tablename with name of your table

近期文章

  • 语法错误,意外':'
  • SQL中的PHP全局变量[关闭]
  • 使用php脚本执行Python代码
  • 自动刷新PHP脚本后端[关闭]
  • 在PHP中回显变量的最佳方法[关闭]
  • 如何访问子类php5中的受保护变量[重复]
  • 将'if else'语句转换为PHP中的循环?
  • 警告:mysql_query()期望参数2是资源,第103行给出的字符串[重复]
  • 在一个查询中组合多个sql / mysql查询
  • 如何检查字符串是否包含3个或更多连续数字
  • 单击html链接时php变量发生变化[关闭]
  • 如何使用explode将字符串转换为数组?
  • 在PHP中使用SQL导致错误PDO语句[关闭]
  • Foreach循环php [关闭]
  • PHP - 如果在if内
  • PHP网站调试[重复]
  • 如何使用PHP显示时间表?
  • 如何在wordpress中获取缩略图
  • 如何存储图像并在网站上提供服务
  • 如何将mysql函数转换为sqlsrv? [关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华