Code For Creating A Like Button

Create Your Like Button



= 1) { echo "Already exists ..."; } else { if ($like_button_url2) { $create_button = mysql_query("INSERT INTO like_buttons VALUES ('', '$username', '$like_button_url', '$date', '$uid')"); $insert_like = mysql_query("INSERT INTO likes VALUES('','$username','-1','$uid')"); echo "
<iframe src='http://localhost/tutorials/findFriends/like_but_frame.php?uid=$uid' style='border: 0px;height: 23px; width: 110px;'> </iframe>
"; } else { $like_button_url = "http://".$like_button_url; $create_button = mysql_query("INSERT INTO like_buttons VALUES ('', '$username', '$like_button_url', '$date', '$uid')"); $insert_like = mysql_query("INSERT INTO likes VALUES('','$username','-1','$uid')"); echo "
<iframe src='http://localhost/tutorials/findFriends/like_but_frame.php?uid=$uid' style='border: 0px;height: 23px; width: 110px;'> </iframe>
"; } } } ?>

Comments

Popular posts from this blog