Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. //modify a photographer (post) if there is data to send
  2. if ($_POST[selecteditor] != "")
  3. {
  4. $sql = "UPDATE grid SET editor = '". $_POST[selecteditor] ."' WHERE storycode = ". $_POST[storycode] ." LIMIT 1)";
  5.  
  6. mysql_query($sql)
  7. or die("can't do it");
  8. }