I found this on php.net to check if file exists.
I want to check if record exists first, then do update, otherwise do an insert.
if(record exist) {
update query}
else
{ insert query}
I know how to update or insert, but don't know how to check if a record exists first. How is it done?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…