Jump to content
php.lv forumi

sql update brīdi izspilda divus lauciņus


nascar

Recommended Posts

Sveiki, tātad piemērs

 

ID Name Name2 Played

1 Janis Peteris 0

 

ID Name Name2 Played

2 Janis Peteris 0

 

mysql_query("UPDATE wtf SET played = '1' WHERE name ='$n1' AND name2 ='$n2'") or die(mysql_error());

un šini bridi viņš update ID 1 un 2, bet vajag lai pirmaja reizē tikai ID 1 update, bet otraja reize ID 2 :)

 

kā to izdarīt?

Kaspars...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...