I would like to know how to have a php script loop through two different sql
statements and use one according to a yes or no answer. I am still kinda
new to php and I already have my sql statements, but I dont know how to use
php to tell it to use one of the other. My sql statements are as
This just showed up, where was it stuck?
Essentially you do a SELECT into your target table, if the target key
exists, which you determine from row count, then you do an UPDATE,
otherwise an INSERT.
I don't know what else you have wrapped around this, in terms of control
structure, so here's