ziedinjsh Posted June 18, 2011 Report Share Posted June 18, 2011 $register = mysql_query("INSERT INTO members (name, email, biografy, password, hash, date, ip) VALUES ('$name', '$email', '$biografy', '$password', '$hash', '$date', '$ip')"); $changestatuss = mysql_query("INSERT INTO akeys (status) VALUES ('1') WHERE hash='$hash'"); Šitā jau laikam nav pareizi, jo man iekš tabulas akeys nekas neieliekās, bet iekš tabulas members ieliekas viss! kāds būtu risinājums?? Paldies jau iepriekš Link to comment Share on other sites More sharing options...
Kemito Posted June 18, 2011 Report Share Posted June 18, 2011 $variable1 = "INSERT INTO members (name, email, biografy, password, hash, date, ip) VALUES ('$name', '$email', '$biografy', '$password', '$hash', '$date', '$ip')"; mysql_query($variable1) or die(mysql_error()); $variable2 = "INSERT INTO akeys (status) VALUES ('1') WHERE hash='$hash'"; mysql_query($variable2) or die(mysql_error()); Link to comment Share on other sites More sharing options...
Rincewind Posted June 18, 2011 Report Share Posted June 18, 2011 INSERT ... WHERE ...? Gan jau ka domāts UPDATE nevis INSERT. Link to comment Share on other sites More sharing options...
ziedinjsh Posted June 18, 2011 Author Report Share Posted June 18, 2011 nu jā laikam jāmeiģina ar update Link to comment Share on other sites More sharing options...
Recommended Posts