1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ill pay 20$ by paypal to any one who can make this work

Discussion in 'Programming' started by lamontgreen, Dec 22, 2008.

Thread Status:
Not open for further replies.
  1. #1
    here the page click here this what i need 1-when login not show the profile info 2-when click on image on right move to image box on left and update profile info 3-box on bottom on the left not center 4- will give a login and password to site here the code --------------------------------------- <?
    ///////////////added by prosenjit///////////////
    session_start();
    if($_SESSION['hval']!=""){
    header("Location: personal.info.php");
    exit();
    }
    ///////////////////added by prosenjit
    require("db_connection/connection.php");
    require("inc/global.inc");
    require(ROOT_INC_PATH."noLogedOut.inc");
    $Language->parseTokens("/myaccount.php");

    require(FUNCTIONS_PATH."SQLToDate.inc");
    require(FUNCTIONS_PATH."getAge.inc");
    require(CLASSES_PATH."Base.class");
    require(CLASSES_PATH."User.ext.class");
    $User=&User::Create($_dsn);

    require(CLASSES_PATH."Membership.ext.class");
    $Membership=&Membership::Create($_dsn);

    require(CLASSES_PATH."Gender.ext.class");
    $Gender=&Gender::Create($_dsn);

    require(CLASSES_PATH."PM.ext.class");
    $PM=&PM::Create($_dsn);
    /////////////////prosenjit's code/////////////////
    $querystatus1="select status_read from email_status_free_users";
    $resultstatus1=mysql_query($querystatus1);
    while($rowdatastatus1=mysql_fetch_array($resultstatus1))
    {
    $statusem=$rowdatastatus1['status_read'];

    }
    /////////////////////////////////////////////////////////
    $new_members=$User->getLocalMembers($_loged['usr_country_id'],$_loged['usr_id'],3);
    $c=0;while ($new_members[$c]) {
    $usr_id=$new_members[$c]['usr_id'];
    $usr_id_64=base64_encode($usr_id);
    $usr_name=$new_members[$c]['usr_alias'];
    $usr_img=HTML_USERS_100x100_IMG_PATH.$new_members[$c]['usr_picture'];
    $usr_gender=$Gender->getOne($new_members[$c]['usr_gender_type'],0,$Language->getCurrentLanguage("lang_id"));

    $borndate_tmp=split("-",$new_members[$c]['usr_borndate']);
    $usr_age=getAge("{$borndate_tmp[2]}/{$borndate_tmp[1]}/{$borndate_tmp[0]}");

    $new_members_html.="
    <td>
    <div class=\"new_members_img_container\">
    <a href=\"user.php?u={$usr_id_64}\"><img border=\"0\" src=\"{$usr_img}\" alt=\"{$usr_name}\" /></a>
    </div>
    <p><a class=\"bluelnk\" href=\"user.php?u={$usr_id_64}\">{$usr_name}</a> / {$usr_age} ".$Language->getToken("myaccount_years")." / {$usr_gender['gnd_lng_name']}</p>
    </td>
    ";
    $c++;
    }

    if($_loged['usr_membership'] ){
    $_pms=$PM->getPMOfUser($_loged['usr_id'],1);
    if(is_array($_pms)) $_pm=count($_pms);
    else $_pm=0;
    }

    if($_loged['usr_membership'])
    $_membership=$Membership->getAll("usr_mbp_usr_id='{$_loged['usr_id']}'");

    array_push($_css,HTML_CSS_PATH."inside.css");

    require(SITE_HEADER);
    ?>
    <div id="contenido">

    <div id="colder">
    <div id="sobremarco">
    <?require(ROOT_INC_PATH."logedMenu.inc")?>
    </div>
    </div>

    <div id="colizq">
    <div class="infobox">
    <h3 class="welcome"><?printf($Language->getToken("myaccount_welcome"),$_loged['usr_alias'])?></h3>
    <div class="box1">
    </style><head>
    <meta http-equiv="refresh" content="200">
    <title>Untitled Page</title>

    <style type="text/css">
    <!--
    .style2 {color: #FF0000}
    -->
    </style>
    </head>
    <body text="#000000">
    <div id="bv_Text3" style="position:absolute;left:442px;top:877px;width:349px;height:34px;z-index:21" align="left">
    <font style="font-size:16px" face="Times New Roman"><span class="style2"><b><u>Introduction</u></b></span></font><font style="font-size:16px" color="#000000" face="Times New Roman"><br>
    </font><?php print $introduction;?></div>
    <div id="bv_Text4" style="position:absolute;left:454px;top:974px;width:288px;height:16px;z-index:22" align="left">
    <span style="color: #FF0000"><font style="font-size:13px" face="Arial"><b><u>What I am looking
    for</u></b></font></span><br>
    <?php print $lookingfor;?>
    </div>
    <div id="bv_Text5" style="position:absolute;left:456px;top:570px;width:172px;height:19px;z-index:23" align="left">
    <font style="font-size:16px" color="#000000" face="Times New Roman"><?php print $_SESSION['username']; ?></font></div>
    <div id="bv_Text6" style="position:absolute; left:432px; top:818px; width:177px; height:16px; z-index:24; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;" align="left">
    <font style="font-size:13px" face="Arial"><b><span class="style2">Last log in</span></b></font><font style="font-size:13px" color="#000000" face="Arial"><b>: </b>
    <?php print date("m/d/Y",strtotime($lastlogin));?></font></div>
    <div id="bv_Text7" style="position:absolute;left:431px;top:595px;width:214px;height:192px;z-index:25" align="left">
    <font style="font-size:13px" face="Arial"><span class="style2"><b>Sexual Orientation:</b>
    <?php print $sexorient; ?><br>
    <b>Smoking</b>: <?php print $smoking; ?> <br>
    <b>Drinking</b>: <?php print $drink; ?> <br>
    <b>Occupation:</b> <?php print $occupation; ?><br>
    <b>Religion:</b> <?php print $religion; ?> <br>
    <b>Education:</b> <?php print $education; ?> <br>
    <b>Marital Status:</b> <?php print $mstatus; ?><br>
    <b>Have Children:</b> <?php print $havechld; ?><br>
    <b>Want Children:</b> <?php print $wantchld; ?> <br>
    <b>Willing to relocate: </b><?php print $relocate; ?> <br>
    <b>Languages:</b> <?php print $langstore; ?> <br>
    <b>Music </b>: <?php print $musicstore; ?> </span></font></div>
    <div id="bv_Text8" style="position:absolute;left:648px;top:595px;width:171px;height:128px;z-index:26" align="left">
    <font style="font-size:13px" face="Arial"><span class="style2"><b>Height:</b> <?php print $height;?><br>
    <b>Body Type:</b><?php print $bodytype;?> <br>
    <b>Hair Color: </b><?php print $haircolor;?> <br>
    <b>Hair Length:</b> <?php print $hairlength;?> <br>
    <b>Eye Color: </b><?php print $eyecolor;?><br>
    <b>Glasses or Contacts?:</b> <?php print $glasses;?> <br>
    <b>Race:</b> <?php print $race;?>&nbsp;&nbsp; </span></font><font style="font-size:13px" color="#000000" face="Arial">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; </font></div>
    <div id="bv_Text11" style="position:absolute; left:663px; top:818px; width:123px; height:25px; z-index:28; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;" align="left">
    <font style="font-size:13px" face="Arial"><b><span class="style2">Age</span></b></font><font style="font-size:13px" color="#000000" face="Arial"><b>:</b><?php print $age; ?></font></div>
    <div align="left" class="style2" id="bv_Text12" style="position:absolute;left:855px;top:566px;width:150px;height:0px;z-index:29">
    <a href="logout.php"><font style="font-size:13px" face="Arial"><b>LogOut</b></font></a></div>


    </tr>
    </table></div>
    <div id="bv_Text13" style="position:absolute; left:429px; top:847px; width:211px; height:23px; z-index:31; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;" align="left">
    <font style="font-size:13px" face="Arial"><b><span class="style2">Your profile has
    been viewed</span></b></font><font style="font-size:13px" color="#000000" face="Arial"><b>:<?php print $userviewed;?></b></font></div>
    <div id="bv_Image2" style="overflow:hidden; position:absolute; left:820px; top:595px; z-index:3; height: 348px; width: 163px;" align="left">
    <table>
    <tr>
    <td align="center" class="style5">Member's</td>
    </tr>
    <tr>
    <td><?php
    // physical information finding
    $sql_phyinfo="select * from user_physical_information where usr_phy_inf_usr_id='$user_id'";
    $result_phyinfo=mysql_query($sql_phyinfo);
    while($row_phyinfo=mysql_fetch_array($result_phyinfo))
    {
    $heightid=$row_phyinfo["usr_phy_inf_height"];
    $bodytpid=$row_phyinfo["usr_phy_inf_body_type"];
    $haircolorid=$row_phyinfo["usr_phy_inf_hair_color"];
    $hairlengthid=$row_phyinfo["usr_phy_inf_hair_length"];
    $eyecolorid=$row_phyinfo["usr_phy_inf_eye_color"];
    $glassesid=$row_phyinfo["usr_phy_inf_glasses_contacts"];
    $raceid=$row_phyinfo["usr_phy_inf_race"];
    }
    // height finding
    $sql_height="select * from height_lang where height_lng_height_id='$heightid' and height_lng_lang_id=1 ";
    $result_height=mysql_query($sql_height);
    while($row_height=mysql_fetch_array($result_height))
    {
    $height=$row_height["height_lng_name"];
    }

    // body type finding
    $sql_body="select * from body_type_lang where body_type_lng_body_type_id='$bodytpid' and body_type_lng_lang_id=1 ";
    $result_body=mysql_query($sql_body);
    while($row_body=mysql_fetch_array($result_body))
    {
    $bodytype=$row_body["body_type_lng_name"];
    }

    // hair color finding
    $sql_hcolor="select * from hair_color_lang where hair_color_lng_hair_color_id='$haircolorid' and hair_color_lng_lang_id=1 ";
    $result_hcolor=mysql_query($sql_hcolor);
    while($row_hcolor=mysql_fetch_array($result_hcolor))
    {
    $haircolor=$row_hcolor["hair_color_lng_name"];
    }

    // hair length finding
    $sql_hlength="select * from hair_length_lang where hair_length_lng_hair_length_id='$hairlengthid' and hair_length_lng_lang_id=1 ";
    $result_hlength=mysql_query($sql_hlength);
    while($row_hlength=mysql_fetch_array($result_hlength))
    {
    $hairlength=$row_hlength["hair_length_lng_name"];
    }

    // eye color finding

    $sql_eyecolor="select * from eye_color_lang where eye_color_lng_eye_color_id='$eyecolorid' and eye_color_lng_lang_id=1 ";
    $result_eyecolor=mysql_query($sql_eyecolor);
    while($row_eyecolor=mysql_fetch_array($result_eyecolor))
    {
    $eyecolor=$row_eyecolor["eye_color_lng_name"];
    }
    // glasses finding
    $sql_glasses="select * from glasses_lang where glasses_lng_glasses_id='$glassesid' and glasses_lng_lang_id =1 ";
    $result_glasses=mysql_query($sql_glasses);
    while($row_glasses=mysql_fetch_array($result_glasses))
    {
    $glasses=$row_glasses["glasses_lng_name"];
    }
    // race finding
    $sql_race="select * from race_lang where race_lng_race_id='$raceid' and race_lng_lang_id=1 ";
    $result_race=mysql_query($sql_race);
    while($row_race=mysql_fetch_array($result_race))
    {
    $race=$row_race["race_lng_name"];
    }


    // personal information finding
    $sql_perinfo="select * from user_personal_information where usr_per_inf_usr_id='$user_id'";
    $result_perinfo=mysql_query($sql_perinfo);
    while($row_perinfo=mysql_fetch_array($result_perinfo))
    {
    $sexorientid=$row_perinfo["usr_per_inf_sexual_orientation"];
    $smokingid=$row_perinfo["usr_per_inf_smoking"];
    $drinkid=$row_perinfo["usr_per_inf_drinking"];
    $occupation=$row_perinfo["usr_per_inf_ocupation"];
    $religionid=$row_perinfo["usr_per_inf_religion"];
    $educationid=$row_perinfo["usr_per_inf_education"];
    $mstatusid=$row_perinfo["usr_per_inf_marital_status"];
    $havechldid=$row_perinfo["usr_per_inf_have_children"];
    $wantchldid=$row_perinfo["usr_per_inf_want_children"];
    $relocateid=$row_perinfo["usr_per_inf_willing_relocate"];
    $langid=$row_perinfo["usr_per_inf_languages"];
    $musicid=$row_perinfo["MUSIC_TYPE"];

    }

    $music_piecess=explode(",",$musicid);
    $lang_piecess=explode(",",$langid);
    // sex orientation finding
    $sql_sexo="select * from sexual_orientation_lang where sex_ori_lng_sex_ori_id='$sexorientid' and sex_ori_lng_lang_id=1 ";
    $result_sexo=mysql_query($sql_sexo);
    while($row_sexo=mysql_fetch_array($result_sexo))
    {
    $sexorient=$row_sexo["sex_ori_lng_name"];
    }

    // smoking finding
    $sql_smoke="select * from smoking_lang where smoke_lng_smoke_id='$smokingid' and smoke_lng_lang_id=1 ";
    $result_smoke=mysql_query($sql_smoke);
    while($row_smoke=mysql_fetch_array($result_smoke))
    {
    $smoking=$row_smoke["smoke_lng_name"];
    }

    //Drinking finding
    $sql_drink="select * from drinking_lang where drink_lng_drink_id='$drinkid' and drink_lng_lang_id=1 ";
    $result_drink=mysql_query($sql_drink);
    while($row_drink=mysql_fetch_array($result_drink))
    {
    $drink=$row_drink["drink_lng_name"];
    }


    // Religion finding
    $sql_relg="select * from religion_lang where religion_lng_religion_id='$religionid' and religion_lng_lang_id=1 ";
    $result_relg=mysql_query($sql_relg);
    while($row_relg=mysql_fetch_array($result_relg))
    {
    $religion=$row_relg["religion_lng_name"];
    }

    //education finding
    $sql_edu="select * from college_lang where college_lng_college_id='$educationid' and college_lng_lang_id=1 ";
    $result_edu=mysql_query($sql_edu);
    while($row_edu=mysql_fetch_array($result_edu))
    {
    $education=$row_edu["college_lng_name"];
    }


    // maritial status
    $sql_mstat="select * from marital_status_lang where mstat_lng_mstat_id='$mstatusid' and mstat_lng_lang_id=1 ";
    $result_mstat=mysql_query($sql_mstat);
    while($row_mstat=mysql_fetch_array($result_mstat))
    {
    $mstatus=$row_mstat["mstat_lng_name"];
    }

    //have child finding
    $sql_hchld="select * from children_lang where child_lng_child_id='$havechldid' and child_lng_lang_id=1 ";
    $result_hchld=mysql_query($sql_hchld);
    while($row_hchld=mysql_fetch_array($result_hchld))
    {
    $havechld=$row_hchld["child_lng_name"];
    }

    // want child finding

    $sql_wchld="select * from want_children_lang where wchild_lng_wchild_id='$wantchldid' and wchild_lng_lang_id=1 ";
    $result_wchld=mysql_query($sql_wchld);
    while($row_wchld=mysql_fetch_array($result_wchld))
    {
    $wantchld=$row_wchld["wchild_lng_name"];
    }



    // relocate finding
    $sql_relocate="select * from relocate_lang where relocate_lng_relocate_id='$relocateid' and relocate_lng_lang_id=1 ";
    $result_relocate=mysql_query($sql_relocate);
    while($row_relocate=mysql_fetch_array($result_relocate))
    {
    $relocate=$row_relocate["relocate_lng_name"];
    }



    // music finding
    for($xx=0;$xx<3;$xx++)
    {

    $sql2="select * from user_music where music_id='$music_piecess[$xx]'";
    $result2=mysql_query($sql2);
    $mm="";
    while($row2=mysql_fetch_array($result2))
    {
    $mm=$row2["music_type"];
    }

    if($mm!="")
    {
    $musicstore= $musicstore.",".$mm;
    }




    }//for close
    $musicstore=substr($musicstore,1);
    /////////////////////////////////////////////////////////////
    //languages finding
    for($xx1=0;$xx1<3;$xx1++)
    {

    $sql_lang="select * from spoken_languages_lang where spk_lang_lng_spk_lang_id=' $lang_piecess[$xx1]' and spk_lang_lng_lang_id=1 ";
    $result_lang=mysql_query($sql_lang);
    while($row_lang=mysql_fetch_array($result_lang))
    {
    $lang=$row_lang["spk_lang_lng_name"];
    }
    if($lang!="")
    {
    $langstore= $langstore.",".$lang;
    }




    }//for close
    $langstore=substr($langstore,1);


    //*********************************************************
    //gender finding
    $user=array();
    $usercount=0;
    $sql_gender="select usr_gender_type from user where usr_alias='$_SESSION[username]'";
    $result_gender=mysql_query($sql_gender);
    while($row_gender=mysql_fetch_array($result_gender))
    {
    $gender=$row_gender["usr_gender_type"];
    }
    if($gender=="1")
    {
    $sql_user="select usr_alias from user where usr_gender_type='2' and usr_picture<>'' ORDER BY RAND()";
    $result_user=mysql_query($sql_user);
    while($row_user=mysql_fetch_array($result_user))
    {
    $user[$usercount]=$row_user["usr_alias"];
    $usercount++;
    }
    }
    else if($gender=="2")
    {
    $sql_user="select usr_alias from user where usr_gender_type='1' and usr_picture<>'' ORDER BY RAND()";
    $result_user=mysql_query($sql_user);
    while($row_user=mysql_fetch_array($result_user))
    {
    $user[$usercount]=$row_user["usr_alias"];
    $usercount++;
    }
    }
    else
    {
    $sql_user="select usr_alias from user where usr_gender_type='1' or usr_gender_type='2' and usr_picture<>'' ORDER BY RAND() ";
    $result_user=mysql_query($sql_user);
    while($row_user=mysql_fetch_array($result_user))
    {
    $user[$usercount]=$row_user["usr_alias"];
    $usercount++;
    }
    }



    $fstsqlphoto="select * from user where usr_alias='$user[0]'";
    $fstresultphoto=mysql_query($fstsqlphoto);

    while($fstrowphoto=mysql_fetch_array($fstresultphoto))
    {
    $fstpic1=$fstrowphoto["usr_picture"];
    }

    ?> <a href="user.php?u={$usr_id_64}" target="new_members_img_container"><img src="../img/users/400x400/<?php print $fstpic1; ?>" alt="" name="photoslider" width="147" height="138" border="2" id="Image2" style="width:153px;height:140px;"></a><a href="#" target="Image1"></a> </td>
    </tr>
    <tr>
    <td id="slider1" align="center" style="font-size:13px" color="#000000" face="Arial" ><form method="POST" name="rotater">
    <?php print $user[0]; ?>
    </form></td>
    </tr>
    <tr>
    <td width="100%"><div align="center">
    <center>
    <p>
    <script language="JavaScript1.1">
    var photos=new Array();
    var useralias=new Array();
    var which=0;
    var p=0;
    </script>
    <?php
    for($piccount=0;$piccount<$usercount;$piccount++)
    {
    $sqlphoto="select * from user where usr_alias='$user[$piccount]'";
    $resultphoto=mysql_query($sqlphoto);

    while($rowphoto=mysql_fetch_array($resultphoto))
    {
    $pic1=$rowphoto["usr_picture"];
    $uname=$rowphoto["usr_alias"] ;

    /*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/

    ?>
    <script language="JavaScript1.1">

    photos[p]="<?php print $pic1; ?>";
    useralias[p]="<?php print $uname; ?>";

    p++;

    </script>
    <?php
    }
    }//for loop close
    ?>
    <script language="JavaScript1.1">
    function backward(){
    if (which>0){
    window.status=''
    which--
    document.images.photoslider.src="../img/users/400x400/"+photos[which]
    //document.rotater.slider1.id= useralias[which];
    document.getElementById('slider1').innerText=useralias[which];
    }
    }

    function forward(){
    if (which<photos.length-1){
    which++
    document.images.photoslider.src="../img/users/400x400/"+photos[which]
    //document.rotater.slider1.id= useralias[which];
    document.getElementById('slider1').innerText=useralias[which];
    }
    else window.status='End of gallery'
    }
    </script>
    <input type="button" value="&lt;&lt;Back" name="B2"
    onClick="backward()">
    &nbsp;
    <input type="button" value="Next&gt;&gt;" name="B1"
    onClick="forward()">
    <br>
    </p>
    </center>
    </div></td>
    </tr>
    </table>
    </div>
    </body>
    </html> <div class="clearer"></div> <?require(SITE_FOOTER);?>
     
    lamontgreen, Dec 22, 2008 IP
  2. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Posting that lot between CODE or PHP tags makes it a lot easier to read and may actually help in getting someone to help you.
     
    Yesideez, Dec 22, 2008 IP
  3. lamontgreen

    lamontgreen Active Member

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    can you fix it
     
    lamontgreen, Dec 22, 2008 IP
  4. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Likely but I'm about to head off to bed - 3:20am and I'm shattered.

    Pulled an all-nighter yesterday because of PHP and I really don't want to do it again!
     
    Yesideez, Dec 22, 2008 IP
  5. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I think you may not get anyone here and also do n't post the code in Public as I can see your SQL tables name and it can be used even to hack your site.. so do n't post it..

    Ask in Services forum someone might help you..
     
    Freewebspace, Dec 22, 2008 IP
  6. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    For readability, use add the "code" bbcode tag to the beginning and end of your code.

    ... looking into your problem.
     
    chopsticks, Dec 22, 2008 IP
Thread Status:
Not open for further replies.