Minor MySql Insert Query Q

A

Anonymous

Guest
im trying to insert into the database on a cetain key, however it goes through the fun stuff but no addition into db.

i think i have the query wrong. any suggestions?


Code:
$query="INSERT INTO warn (wn, wr1, wat1, modw1, wadd1, wforum1, wlink1) VALUES ('$wns', '$rwarn', '$actak', '$wmod', '$dates', '$fwarn', '$wlink') WHERE wuser='$wuser'";
 
Sorry Sorry, got a lil post happy.


Read a few pages and this works

Code:
$query="UPDATE warn SET wn='$wns', wr2='$rwarn', wat2='$actak', modw2='$wmod', wadd2='$dates', wforum2='$fwarn', wlink2='$wlink' WHERE wuser='$wuser'";

Didn't mean to waste ur time ^^
 
Back
Top