Some Questions?

Discussion in 'PHP' started by Aser Gado, Feb 19, 2011.

  1. #1
    Okay, I am working on a facebook for my school, and I need help creating the signup/login/profile pages... Connecting to the database and stuff.. if someone could help me here or on MSN?

    Ole.Aser@hotmail.com

    Thanks,

    Really looking forward to it!
     
    Aser Gado, Feb 19, 2011 IP
  2. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #2
    You probably won't find anyone willing to help you too much for free. Facebook is a massive project, and database connectivity is kindergarten PHP (in the greater scheme of things).

    I recommend you read up on some tutorials/books online. If in doubt, there's always php.net
     
    Alex Roxon, Feb 19, 2011 IP
  3. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its really not that hard, you can produce a new facebook in a matter of weeks really, its the media hype you'd have a hard time reproducing

    you use a session to hold the user variable, insert data into your tables through forms including a posting form for user posts

    call and display posts using an array output from mysql this recycles the data for each post and allows you to process changes based on variable settings etc



    // Connect to server and select databse.
    mysql_connect("$host", "$username", "$password")or die("cannot connect");
    mysql_select_db("$db_name")or die("cannot select DB");


    $query = "SELECT * FROM posts WHERE userid = '$userid'";
    $result = mysql_query ($query);
    if ($result) {
    while($row=mysql_fetch_array($result))
    {
    $usern = $row["username"];
    $post = $row["post"];
    echo "$usern your $post";
    }
    }

    thats really all facebook is other than a few cool javascript elements for its flashy enhancements
     
    srisen2, Feb 22, 2011 IP
  4. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #4
    Previous poster has no idea.
     
    Alex Roxon, Feb 22, 2011 IP