mysqli - Having trouble updating database using php -


i have database called specials table called specials, table has 6 rows, there 3 records record id of 1,2, , 3. 1 of rows called title. have data there want update data using form. how ever mysqli_query not working.

here code.

mysqli_query($connect, "update specials set title=san diego id='1'"); 

assuming title varchar , id int

mysqli_query($connect, "update specials set title='san diego' id=1"); 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -