If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] Cant figure out why this isnt working.

So, im new around here and not quite sure if this should go in the php or the sql seeing is how its a bit of both, but my questions pertains to why my perpare statment doesnt work. Onto the question. My first prepare statments for the select works as should. The result is returned properly. So if there is no entry in the table with the id_address that matches it correctly goes into the if statement and then the second prepare statement is exicuted properly and the data is entered into the table. the second time around when i know that the entry is in the table so it should skip the first if because there is data in the $result, and it is less than 5. it goes into the if statement and echos $update_attempt. the issue i cant seem to resolve is that the update prepare statment to update the entry in the table fails and I cant seem to figure out why.