i send the parameters from my app as girdi1,girdi2 and girdi3. This works well for a registeration process. What I want to add is , I have a different table called tblblocked . I also want to check if the "girdi3" exists in the tblblocked. ( girdi 3 is the device id , so if the device id is in block list i dont want to accept the registration.) tblblocked has only 1 coloums and it is deviceid. So basicly i have to add after -username already exist check - if girdi3 is in the tblblocked under coloumn deviceid. Can you help me add it to code.
it is not working now but it worked one time when i add the post in this forum as "this works" obviously i am not seeing a big mistake . You are right it is not working now. What is the problem.
it is a number, i tried to remove them still no luck. I also use the same field within another app and it works with the single quotes. I think there is another problem
I have other coloumns in the table but they all have default values so can it be the problem. ? Because now i tried to remove the columns with the default values which i am not using in the php , and it works now
I think i found the problem. I have a userid coloumn. set to primary. It makes the problem. I just send paramters for useranem password and cihazid. other coloumns have default values so they are addded automaticly. but my primary key (userid) is not incremented and added automaticly and i think taht makes the problem.
You have to be careful with primary keys values, it can blast a sql statement and make you get much time lost finding the fault. At this time, the sql is simple (inserting 3 values) but if you work with huge statements, with cross selects, unions, etc it can be almost impossible to fix
See you!
You have to be careful with primary keys values, it can blast a sql statement and make you get much time lost finding the fault. At this time, the sql is simple (inserting 3 values) but if you work with huge statements, with cross selects, unions, etc it can be almost impossible to fix
See you!