php check if record exist.
Posted
by user329394
on Stack Overflow
See other posts from Stack Overflow
or by user329394
Published on 2010-05-17T12:16:28Z
Indexed on
2010/05/17
12:20 UTC
Read the original article
Hit count: 181
php
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}
© Stack Overflow or respective owner