I need help from sajha gurus on php. Right now i am running a small website (nothing on it) on html . But i want to convert it on php and join with mySQL. My free host 000webhost gives option for free php and mySQL but have no idea about that. What I want to do is 1) Add like , dislike button on my page 2) Add share on twitter and facebook option (button ) 3) Add small comment section And i know for all these three options I need to connect my site with some data base. Please help me on this. I am running some free non-profit website so please dont ask me to pay :-) I will appreciate any usefull links , sites and codes. Thanks in Advance.
facebook · Sep 28, 2011 1:37 PM · 4,086 views
facebook, i have a php code for your #1 choice check my site if you like then i will give you that code thank you Last edited: 29-Sep-11 08:03 AM
mulmiz · Sep 28, 2011 8:08 PM
Mulmiz that will absolutely work brother . But I guess for that too, i have to join my php with SQL. Am i right ? Last edited: 28-Sep-11 09:02 PM
facebook · Sep 28, 2011 8:52 PM
no FB bro, you just need to creat php page and run it , you will have two files, image and php just link with your pages check your inbox for those files hai alwz Mulmiz
mulmiz · Sep 29, 2011 7:46 AM
Thank brother. i got your codes and everything. I will fix it on my site and let you know.
facebook · Sep 29, 2011 8:16 AM
Hey facebook, you can use the freely available facebook plugins http://developers.facebook.com... to accomplish what you need. You will need to create a facebook app for you to be able to use some of these plugins. Don't worry, it's very easy to create a facebook app. You don't need to create a full fledged application but simply create a name at https://developers.facebook.co... following the directions here http://developers.facebook.com... What you will easily get: Like/Share button in Facebook Comment section where people can leave you comment using their FB acct or even anonymously if not logged into fb.
ne0 · Sep 29, 2011 9:10 AM
Thank you SAN bro :-)
facebook · Sep 29, 2011 10:24 AM
Mulmiz Bro aba yeuta simple question hai ,all my pages are on html now , so how do I convert it on php ? If I am not wrong is it the way 1) inserting this thing on page (<?php and ?>) and 2) saving page on *.php Please explain me little bit :-)
facebook · Sep 29, 2011 12:14 PM
do not forget to CHMOD777 the vote folder. ( i forgot to mention b4) ya just change your extention .html to .php You can add voting in any webpage page by adding: <? include("vote/vote.php"); ?> but need to change extention to php let me know hai thank you
mulmiz · Sep 29, 2011 6:42 PM
Bro thank for that, is it possible to put several votes in same page ? I have list of things which need to be voted or lets says thumps uped or downed . so can i do that ?
facebook · Sep 29, 2011 7:17 PM
i think for this code you can use only once .. try it and leh me knw share your page wid me if you want alwz Mulmi
mulmiz · Sep 30, 2011 1:24 PM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion