Originally posted by tsinka
Hi,
the message tells us that there is no such table fking_grad in database fking_grad. The table name is invalid.
Thomas
yes, because the table name is hits, anyway, i changed it and now works, this is the out put,
"
The SELECT query: SELECT id FROM hits WHERE id='4322'
The INSERT Query: INSERT INTO hits (monday, tuesday, wednesday, thursday, friday, saturday, sunday) VALUES ('0', '0', '0', '0', '0', '0', '0')
"
but when i execute it again, it shows
"The SELECT query: SELECT id FROM hits WHERE id='4322'
The INSERT Query: INSERT INTO hits (monday, tuesday, wednesday, thursday, friday, saturday, sunday) VALUES ('0', '0', '0', '0', '0', '0', '0')
Insert error: Duplicate entry '0' for key 1"
i have to make few changes of the code, because i want, if the ID is used for first time, to save it, to save the hit for the day, and the next time when this ID is used again, to update the value of the hits for the current day, or if it's the next day, to create a value for it too...
and this to happens with all IDs, used....
but i'm not sure how to do it