Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_usercomment_to_db($hash, $uservote, $userid, $usercomment){
- $con = mysql_connect('localhost', 'user', 'pass');
- mysql_select_db('db', $con);
- $sql = "INSERT INTO uservotes (id, votes,
- userid, comments) VALUES ('$hash', '$uservote', '$userid', '$usercomment')";
- //Execute query
- mysql_query($sql,$con);
- mysql_close($con);
- return;
- }
Add Comment
Please, Sign In to add comment