douweng3564 2011-12-21 23:03
浏览 36

没有SQL的简单PHP购物车

I'm trying to create a simple PHP shopping cart with prices, products, registration, and a checkout area. I've searched Google for tutorials but all of them incorporate SQL which is not within my skill set yet. Anyone have any examples or other tutorial resources you could refer to a PHP novice?

Again just trying to create simple PHP shopping cart (no SQL) using arrays for products, functions for various program tasks, form validation, cookies/sessions for cart continuity, template files, and confirmation/receipt emails.

Thanks in advance for any help!

  • 写回答

3条回答 默认 最新

  • dongzheng3113 2011-12-21 23:34
    关注

    Quick googling found: http://www.webforcecart.com/

    In most basic shopping cart examples the SQL could probably be converted into arrays kept in global or session variables. Probably not the best way to make an actual shopping cart, but might be worth it for fun?

    I think a basic cart to see if you can have a cart and add/remove products it might be ok, but once you start wanting user registration/adding/editing/removing products etc., using a database will help make life easier.

    评论

报告相同问题?

悬赏问题

  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样