Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
minus
- Page 1
Re: Trying to animate sprite using DirectX9
Programming
Software Development
1 Month Ago
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
6 Years Ago
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
6 Years Ago
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
11 Years Ago
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
10 Years Ago
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
10 Years Ago
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
9 Years Ago
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
9 Years Ago
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
9 Years Ago
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
16 Years Ago
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
14 Years Ago
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
14 Years Ago
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
9 Years Ago
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
6 Years Ago
by hericles
Which browser are you using? Both buttons appear to work fine in Chrome and Firefox.
Re: minus button
Programming
Web Development
6 Years Ago
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
6 Years Ago
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
6 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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
11 Years Ago
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(); …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC