What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help Php Web bookstore

Joined
Apr 15, 2015
Messages
410
Reaction score
132
Age
19
Guys tanong lang , kung alam nyo ung codes for web bookstore.

kada book may price . and kada book maglalagay users ng quantity.

pano ba yung ma popost ung summary and total ng quantity. example yung book is 300php and nilagay ni user na quantity is 2 , tas pano makukuha yung total. quantity = book1*Price; ganto ba? . ung code lang po for summary dko alam kung pano.
 

kingjaek

Addict
yeah. try associative array and ipasok mo sa foreach loop mo where key is the price and the value is the quantity tsaka mo imultiply.
 

oxy_63n

Enthusiast
Guys tanong lang , kung alam nyo ung codes for web bookstore.

kada book may price . and kada book maglalagay users ng quantity.

pano ba yung ma popost ung summary and total ng quantity. example yung book is 300php and nilagay ni user na quantity is 2 , tas pano makukuha yung total. quantity = book1*Price; ganto ba? . ung code lang po for summary dko alam kung pano.

Gawa ka po ng parang e-cart hehe. use ajax jquery para no refresh when doing actions.
 

Trending Topics

Trending On This Forum

Unanswered Topics

Top