Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4572750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:41:24+00:00 2026-05-21T19:41:24+00:00

ok maybe i must put all my code: <?php include(‘header_application.php’); $obj_clean->check_user(); $limit = 10;

  • 0

ok maybe i must put all my code:

<?php
include('header_application.php');
$obj_clean->check_user();
$limit = 10;
if(!isset($_GET['page']))
  $page = 1;
else
$page = $_GET['page'];

$from = (($page * $limit) - $limit);
$msg = "";
if (isset($_GET['unblock']))
{
  $code = $obj_clean->unblockUser($_GET['unblock'],$_GET['code']);
  if ($code == "error")
  {
     $msg = "Could not delete message!";
  }
  else
  {
    $msg = "You have unblocked ".$code;
  }
}

//Get dynamic data required for this page from the database
$users = $obj_clean->getContacts($_SESSION['user_id'], $from, $limit);
$rows = $obj_clean->getContactsCount($_SESSION['user_id']);
include ("header.php");
?>
<div class="innerContainer">
<head>
<script type="text/JavaScript">
function yesnolist(val)
{
 var e = confirm('Do you want to send a free chat request?');
 if (e == true)
 {
    window.location.href = "http://www-rainbowcode-mobi/confirmfreechat.php";
    //window.location('http://www-rainbowcode-mobi/confirmfreechat.php');
    return true;
 }
  else
    return false;
 }     
</script>  
</head>
<span class="headings2">CONTACTS</span>
<?php if (isset($msg) && !empty($msg)) echo "<br/><font color='red'>".$msg."</font>"; ?>
<br/><br/>
<?php
if (count($users) > 0)
{
    echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
    foreach ($users as $user)
    {
        //Breaks the unique code into 3 parts so that the numeric part can be a different colour
        $codeLength = strlen($user['unique_code']);
        $firstPartLength = $codeLength - 5;
        $uniqueCode3 = substr($user['unique_code'], -2);
        $uniqueCode2 = substr($user['unique_code'], -5, 3);
        $uniqueCode1 = substr($user['unique_code'], 0, $firstPartLength);
        echo '<tr>';
        echo '<td>';
        echo '<a class="charcoal_link" style="line-height: 20px;" href="'.ADDRESS.'view_profile.php?id='.$user['profile_id_contact'].'">'.$uniqueCode1.'<span class="pink_text">'.$uniqueCode2.'</span>'.$uniqueCode3.'</a>';
        $requestor_id = $_SESSION['user_id'];
        $profile_id = $user['profile_id_contact'];
        $rel1 = $obj_clean->hasRelation($requestor_id,$profile_id);
        $rel2 = $obj_clean->hasRelation($profile_id,$requestor_id);
        if($rel1 && $rel2) 
        {
          echo "&nbsp;&nbsp;";
          //echo '<a href="confirmfreechat.php?id='.$profile_id.'" onClick="yesnolist()">Free Chat</a>';
          echo '<a href="#" onClick="yesnolist(); return false;">Free Chat</a>';
        }
        echo "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
else
{
    echo "You have no contacts yet";
}
?>
</div>
<?php include("footer.php"); ?>

hope this will help better

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:41:24+00:00Added an answer on May 21, 2026 at 7:41 pm

    try this:

    function yesnolist()
    {
        if (confirm('Do you want to send a free chat request?'))
            window.location = "http://www-rainbowcode-mobi/confirmfreechat.php";
    }
    

    .
    .
    .

    <a href="#" onClick="yesnolist()">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe this applied to other Delphi's (I've only used 7). We've got our code
Sometimes for testing/developing purposes we make some changes in the code that must be
Maybe I just don't know .NET well enough yet, but I have yet to
Maybe the need to do this is a 'design smell' but thinking about another
Maybe this is a dumb question, but is there any way to convert a
Maybe I'm just thinking about this too hard, but I'm having a problem figuring
Maybe my understanding of agile development isn't as good as it should be, but
Maybe this is an overarching question as I've seen similar bugs in Firefox and
Maybe world peace would be easier, but I have a problem with the widths
Maybe this is a dumb question, but I have the following behavior in Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.