Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created February 19, 2012 14:40
Show Gist options
  • Select an option

  • Save johnhamelink/1864104 to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/1864104 to your computer and use it in GitHub Desktop.
(SELECT * FROM topics WHERE ( id='$id' AND user_id='$userId')) OR (INSERT INTO topics ('id','userId','name') VALUES ('$id','$userId','$name'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment