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
Post a Comment