tiziano: i can't use elseif because it is totally different values i am comparing.
pig: yes, it is a nested if, but i managed to get it work..
but the strange thing happens
this is the script:
IF (sth) {
// sth ...
IF ($row>0)
{
echo "i already have you in db";
}
else
{
// insert into db ... echo "inserted in db";
}
} else {
// something
}
Now, when $row is >0 script inserts data into db, and when it is 0 it says "i already have you in db" ?
Doesn't seems logic to me... but it works
😕