Jump to content

shibobo12

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shibobo12's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I would like to set up a php birthday reminder so that if users bdays are within the 7 days, it should display that the folllowing people celebrate their bday next week so far i have got to this stage, does any one have a better idea? if(!empty($_POST)){ function birthday ($birthday){ list($year,$month,$day) = explode("-",$birthday); $year_diff = date("Y") - $year; $month_diff = date("m") - $month; $day_diff = date("d") - $day; if ($day_diff < 0 || $month_diff < 0) $year_diff--; return $year_diff; } Any ideas will be wolcomed on how I can complete the rest of this code! all I would like is to see which friends or users have their bday in the next 7 days and their age if possible!!
  2. Hi folks Looking for some help regarding the below, i need to send a notification whereby if John wants to be Peter's friend, John will click on Peter's name hyperlink "Make Friend", then a notification will be sent to peter and will appear on Peter,s profile page, then once Peter has accepted friendship, these two people can then become friends, then ofcause the "friends" table will be updated, how do I write a PHP code for this, so far I have got: <?php session_start(); $a = $_SESSION["gatekeeper"]; $conn = mysql_connect("localhost", "PeterJones", "PeterJones"); mysql_select_db("JonesPeter"); if ( !isset ($_SESSION["gatekeeper"])) { echo "You're not logged in. Go away!"; } else { $result=mysql_query("SELECT * FROM users WHERE username = '$a'"); while($row=mysql_fetch_array($result)) { echo "You are logged in as!"; echo " $row[username] <br />"; // How do I make the currently user's online friends to display like this????? Please help me on this one as well!!! echo " Online friends <br> <br />"; //John, Josh, Joseph etc ???? Please help me on this one as well!!!! echo " Search for your Friends <br> <br />"; } } ?> <form method="post" action="search.php" <label for="username">Name</label> <input type="text" name="username" /> <input type="submit" value="Search" /> </form> </body> <div> <a href="logout.php"> Logout</a> Regards Shibobo12
  3. Hi, I am new to php so please bear with me as I might ask obvious questions, I am working on a website that works similar to facebook, i am struggling to write a php script for profile.php, once the user is on the profile page, they should be able to view online friends, invite new friends etc. Could you help me with the php script for profile, member etc Thanx
  4. Hi, I am new to php so please bear with me as I might ask obvious questions, I am working on a website that works similar to facebook, i am struggling to write a php script for profile.php, once the user is on the profile page, they should be able to view online friends, invite new friends etc. Could you help me with the php script for profile, member etc Thanx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.