if i have
$updateSQL = sprintf("UPDATE stuffntory SET `youwho`=%s, stock=stock -1, list=%s WHERE something=%s",
instead of minus -1 I would like to have -Quanity that was input by text box
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update your
sprintf()format to have a placeholder for quantity. Assuming quantity is an integer: