Home » questions » Mysql(+PHP) database Insert?

Mysql(+PHP) database Insert?

2006-08-13 00:33:40, Category: Programming & Design
How can I insert data to my database, ONLY IF there isnt any similar data already in it. And If it exists, then no new data would be inserted.

Answers

  1. Neeraj

    On 2006-08-13 01:26:21


    Download SQL Front software, to modify database contents.This is more user-friendly, that the DOS - command line interface.After downloading the program, connect the database with your program with appropriate port settings n stuff. http://www.sqlfront.com/
  2. OoohLaLa

    On 2006-08-13 06:59:37


    You can try SELECT query, if the data is not inserted then try INSERT query. If you wanna modify the existing data, then try UPDATE query. I hope this helps
  3. boukenger

    On 2006-08-13 00:37:12


    Do a SELECT query for any similar data. If the SELECT query returns data, then do not insert new data, if not then INSERT the new data.