User Profile

Collapse

Profile Sidebar

Collapse
dazase1
dazase1
Last Activity: Apr 22 '13, 05:14 PM
Joined: Mar 2 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dazase1
    replied to Fetch rows until quantity has been met
    in PHP
    Rabbit thank you for your reply. I will try this method out also along with other ways that have been suggested. Thanks
    See more | Go to post

    Leave a comment:


  • dazase1
    replied to Fetch rows until quantity has been met
    in PHP
    hi Rabbit,
    How would I do this? As this is what I keep getting stuck on. Like what I need is...
    while there are 'potential matches' keep looping... I do this using

    Code:
    while ($rows1 = mysql_fetch_assoc($queryQuantity2)){
    which would list those matching sellers.

    Then check.. If the first row == $requestQuantit y then output only the first matching row .. i.e. quantity has been met..

    Else...
    See more | Go to post

    Leave a comment:


  • dazase1
    started a topic Fetch rows until quantity has been met
    in PHP

    Fetch rows until quantity has been met

    Hi,
    I have a SQL Database and I wish to obtain records until the customer's quantity requested has been met. Here is what I mean.
    Request Table
    Code:
    Product     Quantity   Price
    -----------------------
    Apple          10.0      5.00
    here is the SQL query to obtain matches:
    Code:
        select c.FName,
                p.ProductName,
                s.Description,
    ...
    See more | Go to post

  • dazase1
    replied to Reducing Quantities Request and Seller table
    in PHP
    Hi, Luuk

    Yes I believe this is what I need to do but that is precisly the problem I dont know how I should go abouts doing this.

    Here is an example: Requests table

    Code:
    Product     Quantity   Price
    -----------------------
    Apple	10.0  	5.00
    That table is outputted in PHP...

    here is the potential matches
    Code:
    Name(seller) |  Product |           Descp
    ...
    See more | Go to post

    Leave a comment:


  • dazase1
    started a topic Reducing Quantities Request and Seller table
    in PHP

    Reducing Quantities Request and Seller table

    I have a small problem.

    I have 4 tables. Customers (holding customer data e.g. id, names, address email, password etc), products table holding product info(product id, name), a requests table where the customer 'Requests' a product i.e. shows intrest (request id, customerID[forignkey], productid[FK] quantity and price they wish to purchase at ) and finally a sellers table where sellers can say (ID, customerid[fk], productid[FK], descrip,...
    See more | Go to post
    Last edited by dazase1; Mar 2 '13, 12:28 PM. Reason: Added code tags
No activity results to display
Show More
Working...