Jump to content

I-AM-OBODO

Members
  • Content Count

    373
  • Joined

  • Last visited

Community Reputation

1 Neutral

About I-AM-OBODO

  • Rank
    Advanced Member

Contact Methods

  • AIM
    funkyfel
  • MSN
    funkyfela
  • Yahoo
    funkyfela
  • Skype
    chidi.james

Profile Information

  • Gender
    Male
  • Location
    Nigeria
  • Interests
    Computer, Playing Video Games, Learning
  1. I-AM-OBODO

    Auto populate price based on selected product

    Am not really after the calculation, what I'm concerned about is retrieving the value of price based on selected products so that the price shows up on the price input area for further processing. If I get this, my job is halve done (assuming I'm sticking with dropdown option)
  2. I-AM-OBODO

    Auto populate price based on selected product

    Ok. The app is gonna run on WAMP. So the issue of slow server is to a great extent eliminated. The system will have a good CPU and RAM for speed. Will have to think of something and if nothing comes handy, will make do with the dropdown/select option. Thanks guys.
  3. I-AM-OBODO

    Auto populate price based on selected product

    I quite agree with you. But this is to be used for small scale sales shop that sells confectioneries basically and few other stuffs. It's just to add glamour to the shop and also keep records of sales/profits. Using thumbnail/image will it not be tedious for the sales rep. Cos basically it's the sales rep only that does the shopping and the customer is issued receipt. Now I really should change/abandon my initial perception. What do u think? Any idea is highly welcomed.
  4. I-AM-OBODO

    Auto populate price based on selected product

    The calculation is not the problem for now as I can do it either later on as the products are populated. The main issue I have now is to retrieve prices based on selection
  5. I-AM-OBODO

    Auto populate price based on selected product

    Am not saying I cannot retrieve the value for the prices. What I want is for the price to auto populate once the product is selected and that can't be done with php alone I guess
  6. I-AM-OBODO

    Auto populate price based on selected product

    How do I get the price based on the selected product firstly?
  7. Hi all, How can i auto populate the price of an item based on a chosen product and then auto calculate the price and quantity before hitting the ADD button. I think it should be a javascript/ajax/jquery stuff but dont know how to go about it. The Unit price should be auto populated based on valu from the database. The amount is the Unit Price times the Quantity of the Product Selected. Thanks My form <form action="" method="post" data-toggle="validator"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label>Item Name</label> <select id="username" name="item_name" class="form-control inputs" data-error="Select Item" required> <option value="">Chose Item</option> <?php $stmt = $pdo->query(" SELECT item_name FROM stocks ORDER BY item_name ASC "); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $item_name = $row['item_name']; echo "<option value=\"$item_name\"> $item_name </option>"; } ?> </select> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Unit Price</label> <input type="number" class="form-control" name="item_price"> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Item Quantity</label> <input type="number" class="form-control" name="item_qty" required data-error="Stock Quantity is missing"> <div class="help-block with-errors"></div> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Amount</label> <input type="number" class="form-control" name="amount" > <div class="help-block with-errors"></div> </div> </div> </div> <br> <span class="input-group-btn"> <input name="send" type="submit" class="btn btn-danger btn-form display-4 rounded" value="ADD"> </span> </form>
  8. I-AM-OBODO

    Echo Download Link

    In between, The download attribute is not supported by older browsers though
  9. I-AM-OBODO

    Echo Download Link

    The concatenation does the job. The work of concatenation(the dot) is to join. So mine as well is very ok. So whichever way you feel like, its up to you!
  10. I-AM-OBODO

    Echo Download Link

    Oops! somehow through trial and error i got it working. Thanks.
  11. I-AM-OBODO

    Echo Download Link

    Hi guys, I stored the path of a file in a database and the file in a folder, now i want users to click on a link and be able to download the file. I tried: echo " Download <a href=".$file_path." download>Here</a>"; ?> Didnt work, just took me to the path of the image. What i want is a link and when clicked the download window pops out. Thanks
  12. I-AM-OBODO

    Database not connecting again!!!

    Will do. Thanks
  13. I-AM-OBODO

    Database not connecting again!!!

    Thanks all. Seen the problem. It was from an a file i included. It was obsolete. Uses mysql instead of mysqli. Problem resolved. Thanks
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.