Closed Askd02 closed 9 years ago
this is my queries.php
values is misspelled. It's supposed to be all capital letter. (like this: VALUES)
Thanks for the reply,I have corrected the values into capital VALUES but still im getting the same error
now i have no errors but still i cant create or update a page
you got two diferent tables there.... for the update is page, and for the insert is pages. look it up
Thank you creptor its working now,but i dont understand why both of my pages are getting updated at once whenever i add a new page and i dont want this to happen i have logged in from different users aswell but whenever i add a new page both of my pages are getting changed. here is a pic
ok.... I kind of not get what you just said but if you get 2 pages updated when you update 1 then it must be because of your id, so it doesn't make sense. if that is not what you said and it's something like new page = 2 pages tell me and please post your actual code with http://pastebin.com/
I need two different pages like homepage and about us page . so how to change or edit my ID so that whenever i update 1 page only that page changes but not the other one .
O I see. In the update query you forgot the WHERE id=$_GET[id]
and you have to remove it from the insert query.
if it does work please close the issue
Thanks
cannot add or update page