Guest User

Untitled

a guest
Jan 17th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function add_usercomment_to_db($hash, $uservote, $userid, $usercomment){
  2. $con = mysql_connect('localhost', 'user', 'pass');
  3. mysql_select_db('db', $con);
  4. $sql = "INSERT INTO uservotes (id, votes,
  5. userid, comments) VALUES ('$hash', '$uservote', '$userid', '$usercomment')";
  6.  
  7. //Execute query
  8. mysql_query($sql,$con);
  9. mysql_close($con);
  10. return;
  11. }
Add Comment
Please, Sign In to add comment