Search found 9 matches

by marytan
Sun Oct 07, 2012 2:59 pm
Forum: PHP
Topic: Share button
Replies: 2
Views: 674

Share button

How does it work? How can this be achieved? any link for a tutorial for references?
by marytan
Mon Sep 17, 2012 1:57 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

I think I should store the small random code, maybe just 5 characters when the group is created. Then the members can just pass it around.

I still don't know how I should create the join function :(

Also, what are some good parameter checks for checking if the user is a member?
by marytan
Sun Sep 16, 2012 12:19 pm
Forum: SQL
Topic: can't get the post to show to the user only
Replies: 1
Views: 1391

can't get the post to show to the user only

I have a function and can't make it work. I tried many things but still no luck. [syntax=php]function get_posts($id = null, $category_id = null) { $posts = array(); $query = "SELECT `posts`.`id` AS 'post_id', `categories`.`id` AS 'category_id', `title` , `content` , `date_posted` , `categories`...
by marytan
Thu Sep 13, 2012 3:56 am
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

almost done. How about the join function? What's the best way to implement this? I'm trying to decide which function is better so I might create 2 options just for the purpose that I may use it some time in the future. First is a button where a user will press and send a request to the user who crea...
by marytan
Wed Sep 12, 2012 2:38 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

I'm currently doing it and I'm almost finished. can you help me design the group_member table? I can't think of a good way how I should create it with sql...
by marytan
Mon Sep 10, 2012 3:24 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

[syntax=php]<?php $group = @$_POST['group_name']; if ($group != "") { $group_name = $_POST['group_name']; $created_by = $user_data['username']; $sqlCommand = "INSERT INTO `group` VALUES('', '{$group_name}','{$created_by}')"; $query = mysql_query($sqlCommand) or die (mysql_error()...
by marytan
Sun Sep 09, 2012 3:10 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

I don't mind as long as you're ok with me asking for huge favor because I find this problem a too complex for me. Other forums are just being rude to me and kept ranting. Thanks for being friendly! The `subscribed` row will be used to check if the user is a member. Just like activating accounts when...
by marytan
Sun Sep 09, 2012 2:27 pm
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Re: Creating groups like facebook

I already made a script for creating a group. A form that will submit the group's name, ID and the creator but that's about it. I have a table called "groups" where I am storing group_id, group_name, and created_by. Another table for group_members: id, group_id, member, and subscribed(to c...
by marytan
Sun Sep 09, 2012 11:29 am
Forum: PHP
Topic: Creating groups like facebook
Replies: 13
Views: 2183

Creating groups like facebook

Hi, can anyone help me with this one? I'm trying to make a feature in my where in users can create groups. What is the best database structure and can someone help me by writing necessary queries? I'm not good when it comes to getting information and using functions :(