try this
echo $sqlupdate1 = "UPDATE table SET commodity_quantity=$qty WHERE user="".$rows["user']."' ";
More Related Contents:
- How can I properly use a PDO object for a parameterized SELECT query
- MySQL: Select Random Entry, but Weight Towards Certain Entries
- Notice: Array to string conversion in
- Selecting all columns that start with XXX using a wildcard?
- SELECT COUNT() vs mysql_num_rows();
- Select from mysql table WHERE field=’$array’?
- How do I set the selected item in a drop down box
- Selecting all fields except only one field in mysql [duplicate]
- select within 20 kilometers based on latitude/longitude
- MySQL ORDER BY rand(), name ASC
- How to create this type of JSON data from PHP [closed]
- Just using mysql real escape string [closed]
- Many-to-many relationships examples
- How to execute two mysql queries as one in PHP/MYSQL?
- Storing files in database Vs file system
- MySQL Join two tables with comma separated values
- How can I Use Prepared Statements in CodeIgniter
- How to echo out table rows from the db (php)
- How to display Unicode data with PHP [duplicate]
- PDO fetchAll group key-value pairs into assoc array
- MySQL Performance – “IN” Clause vs. Equals (=) for a Single Value [duplicate]
- Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in
- WordPress Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php:1570
- PHP 7 RC3: How to install missing MySQL PDO
- How can I do a migration in laravel 5.5?
- Best way to store IP in database?
- Which is fastest in PHP- MySQL or MySQLi?
- How to get last inserted id from table MySQL [duplicate]
- How can I list data in sections by an ID, with a while loop in PHP? [closed]
- find in set in laravel ? example