Re: Trying to animate sprite using DirectX9 Programming Software Development by Pavel_11 … should to use one variable movex to make it with minus or plus sign in your update function; by pressing left… minus button Programming Web Development by davy_yg …home') ... <a class="plus-minus-toggeler"><span class="glyphicon … $(".placeholder-third").hide(); $(".plus-minus-toggeler:not(.dont-hide)").hide(); } Any …clue how to make the minus button works in apages.blade.php works? … Re: minus button Programming Web Development by davy_yg I wonder why it doesn't work. I already add this script to hide the backend-box whenever the - (minus) sign being clicked. $('plus-minus-toggeler').on( "click", function( event ) { $('backend-box').hide(); }); -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat I am trying to build a inventory page.. I want it to minus one everytime a product is selected.. right now I have it setup as item number > Amount taken I have no idea how to make the minus one work in the php mysql.. in the drop down I have -1 but then it will update in the system as minus -1 it will not actually take one off. Minus data from the program to the database Programming Software Development by fuhanspujisaputra How do i minus data from the program to the database? I have quantity … is A. The database: The quantity will be 50 (because minus with the database and my program "100 - 50 = 50… Re: Minus data from the program to the database Programming Software Development by ss125 …;Quantity"].ToString()); In order to do a math function(minus) both the data must be numerical. But while retrieving data… Re: count++ on minus/plus Programming Web Development by Airshow …element that is a sibling of the particular plus/minus button that was clicked. Something like this should…the containing table element, AND handle both plus and minus with a single handler, as follows : //Assuming… has id="cartTable" $("#cartTable").on('click', '.minus, .plus', function() { var $this = $(this), $count =… count++ on minus/plus Programming Web Development by safi.najjar1 … with jquery this my code: var count = $(".count"); $('.minus').on('click', function () { if (count.val() > 1) count.val… type="button" id="minusInCart" class="minus" value="-"> <input id="quantityInCart… how can i minus the quantity when click delete Programming Web Development by rjusman90 want to minus the quantity when click delete if cart qty is more …:'.$return_url); } this code is deleting the product but i want minus also when qty is greater then 1 Calculate number of days between two dates minus weekends Programming Web Development by Fungus1487 I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and sundays. (including the start date) how can we minus 15 pixel from fitting image in this code ? Programming Web Development by fuchsia555 hi how can we minus 15 pixel from bottom height in fitting for create thumbnails … Re: how can we minus 15 pixel from fitting image in this code ? Programming Web Development by fuchsia555 … try to edit this code to add $crop = 15 and minus it from height ? i don't know how to do… Clear Fields Minus One Box Programming Software Development by Gus_19 …. How can I programmatically clear all of the other fields, minus this textbox. (There are other textboxes on this tab. This… Re: minus button Programming Web Development by hericles Which browser are you using? Both buttons appear to work fine in Chrome and Firefox. Re: minus button Programming Web Development by davy_yg Here cek this out: http://www.advance-web-studio.com/share/minimize.jpg You have to login to the admin page first: http://fresway.com/admin login: davy_yg@yahoo.com pass: 12345 Click the first arrow to go to page, then the second arrow to try to minimize the page layer. Re: minus button Programming Web Development by davy_yg @hericles - I PM the new password. Since someone changed my first password and makes me cannot login. Re: minus button Programming Web Development by gentlemedia > Since someone changed my first password and makes me cannot login. Yeah, you could wait for that :)))) Oh... and it was not me! Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by ndeniche You can create an array that tracks which items have been selected, so everytime an item is selected it adds +1 to the item's value in the array. Then, after the form is submitted (or in the form submit action) you call the function that stores the data into de db, so that it runs the database update for every element in the array. Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by diafol id/qty in form or js/ajax/session array - depends how you're implementing this. You then pick up the values on checkout confirm. It should be an array of some description: $_POST['checkout']['product_id'] Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by Biiim <select name='product'> <option value='1'>Car</option> <option value='2'>Bike</option> <option value='3'>Truck</option> <option value='4'>Motor bike</option> <option value='5'>Tractor</option> </select> <select name='qty'> <option … Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat > <?php > //the process page > if(ctype_digit($_POST['product']) && ctype_digit($_POST['qty'])){ > $Q = "UPDATE `products` SET `instock` = `instock` - {$_POST['qty']} WHERE `prodid` = {$_POST['product']}"; > } ?> Please excuse my tiredness . I don't understand the ctype_digit … Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by Biiim ctype_digit($value) returns true if the $value is a string and is made up of only digits(0-9) So when you say `if(ctype_digit($value)){` it will only run if the passed $value contains only digits - so for product id's its perfect - (if prodid and quantity is a string containing only digits run the script else theres a bad value) its just input … Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat Thank you but im not sure what im missing here - if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf Replaced \/ ("UPDATE fruitinventory SET stock=%s, type=%s WHERE itemnumber=%s", … Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat Heres what I have but im not sure where I am missing the subtraction at ? if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s WHERE itemnumber=%s", GetSQLValueString( - $_POST… Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat this is what i have but it still subtracts the incorrect amount $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s, stock=stock - '%{$_POST['amount']}%' WHERE itemnumber=%s", Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by Biiim $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s WHERE itemnumber=%s", GetSQLValueString( - $_POST['amount'], "int"), GetSQLValueString($_POST['type'], "text"), GetSQLValueString($_POST['type'], "text"));… Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by Biiim $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s, stock=stock - '%{$_POST['amount']}%' WHERE itemnumber=%s", to: $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s, stock=stock - {$_POST['amount']} WHERE itemnumber=%s", mysql is expecting a query like `UPDATE table SET field = field… Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat Thank you but im getting zero still for some reason thats my drop down \/ <select name="amount" id="amount"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option … Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by xbat When I'm using this code for some reason it subracts everything... im not sure what im missing.. I will select 1 and it subtract 50 or 51 it doesnt make what the number is because it always come to 0... $updateSQL = sprintf("UPDATE fruitinventory SET stock=%s, type=%s, stock=stock - {$_POST['amount']} WHERE itemnumber=%s", Re: -minus 1 or 2 - with drop box from inventory Programming Web Development by Biiim Maybe i got into it too much but heres a working example, i used it to try out ajax with jquery: stocktest.php <?php $DB = mysqli_connect('localhost','stocktest','testing','bim'); $stockQ = "SELECT * FROM `stocktest`"; $stockR = mysqli_query($DB,$stockQ); echo mysqli_error($DB); $stockdata = array(); …