Hi,
How to do this check entry if exist or not then if not do insert data entry to mysql database.
BR
Printable View
Hi,
How to do this check entry if exist or not then if not do insert data entry to mysql database.
BR
isset ?
INSERT INTO tbl_name (a,b,c) VALUES(1,2,3) where id not in (select id from tbl_name);
Should do what you're looking for. It's not tested though.
It is better though to use a query to check it exists first.
SELECT NULL FROM ID tbl_name WHERE id=1
If you have one record you know it is in there :)