thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Error: Page could not be added updated because: Table 'saudcms.page' doesn't exist UPDATE page SET user = 1, slug='about-us', title='About Us', label='about', header='About Sauds Web', body=' hello world .. #94

Closed Askd02 closed 9 years ago

Askd02 commented 9 years ago

cannot add or update page

Askd02 commented 9 years ago

this is my queries.php

man

creptor commented 9 years ago

values is misspelled. It's supposed to be all capital letter. (like this: VALUES)

Askd02 commented 9 years ago

Thanks for the reply,I have corrected the values into capital VALUES but still im getting the same error

Askd02 commented 9 years ago

now i have no errors but still i cant create or update a page

creptor commented 9 years ago

you got two diferent tables there.... for the update is page, and for the insert is pages. look it up

Askd02 commented 9 years ago

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 man

creptor commented 9 years ago

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/

Askd02 commented 9 years ago

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 .

creptor commented 9 years ago

O I see. In the update query you forgot the WHERE id=$_GET[id] and you have to remove it from the insert query.

creptor commented 9 years ago

if it does work please close the issue

Askd02 commented 9 years ago

Thanks