Hello,
Is there an easy way to have a query check to see if an index id # already exists so that it know whether to use INSERT or UPDATE?
I've been doing something along these lines,..querying to see if it exists first.
Select INDEX_ID from table where INDEX_ID = '$indexid';
blah blah
if(mysql_num_rows){
UPDATE table,..
}
else{
INSERT INTO table...
}
This seems like a lot of additional steps, any thoughts?