Jump to content

spanienfoeck

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

spanienfoeck's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thx, i'll try it. the problem is, that it doesn't do what i want :-) like, if i press the verifylink, the program should prove if the same entry is allready in the .tmp database, if not it should write it in the maindatabase and delete the .tmpdatabase entry... you get the idea? very simple.... but with my old code i got sometimes an entry in the .tmpdatabase, but most times i don't get any entry in none of the databases, and sometimes i got the same entry all the time... i doesn't prove if the same entry is allready in the database. cheers
  2. i want to prove if the entry allready exists... as long as there are not all fields the same it should do a new entry in the db... can someone help me please???? cheers [code] $query="SELECT nombre, ultimocontacto, esde, vivido, conoces, asunto, anuncio, email, otraforma,pais               FROM db2006_tmp               WHERE nombre='$nombre'AND ultimocontacto='$ultimocontacto'AND esde='$esde'AND vivido='$vivido'AND       conoces='$conoces'AND asunto='$asunto'AND anuncio='$anuncio'AND email='$email'AND       otraforma='$otraforma'AND pais='$pais'"; $res =mysql_query($query); $found = mysql_num_rows($res); mysql_query(""); if ($found == 0) { mysql_query("INSERT INTO db2006 (nombre, ultimocontacto, esde, vivido, conoces, asunto, anuncio, email, otraforma, timestamp, pais) values ('$nombre','$ultimocontacto','$esde','$vivido','$conoces','$asunto', '$anuncio','$email','$otraforma','$timestamp','$pais');"); print "OK, saved...";} else { print "allready in list";}[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.