php check if record exist.
- by user329394
hi all,
i found this to check if file exist. is there a way how to check if record exist first?
php.net
i want to check if record exist first, if exist then do update, else do insert. i do understand how to make a queries for select and insert and i dont have problem with it.
if(record exist) {
update query}
else
{ insert query}