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 6360723
In Process

The Archive Base Latest Questions

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

using Eclipse 3.5.2 (PDT, WEB TOOLS , APTANA 2 and debugging with XDEBUG) on

  • 0

using Eclipse 3.5.2 (PDT, WEB TOOLS , APTANA 2 and debugging with XDEBUG) on UBUNTU 10.04…

I can not figure out for the life of me what is wrong with this code. I’ve been working for years as a .NET developer, so I think I know how to read documentation and configure a basic app although I’m new to LAMP.

The following page only displays the “PHP is Running” and the first list of “me”, “you” and “her”. I’ve double checked the db credentials by logging into PhpMyAdmin.

When debugging and I step into core_db.php, the variables are all listed as <Uninitialized> and everything stops at the line $stmt->execute();

list_users.php

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php include 'db/chore_db.php' ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=encoding">
<title>Insert title here</title>
</head>
<body>
<?php echo 'Php is running'; ?>
<ul>
<?php $ar = array('me','you','her');
foreach ($ar as $user) {
    ?>
    <li><?php   echo $user;}?></li>
</ul>

<div>

<?php 
$db = new chore_db();
$myusers = $db->get_users(null,null);

foreach ($myusers as $u) {
    ?>


<ul>
    <li><?php echo $u;  }?></li>
</ul>
</div>
</body>
</html>

chore_db.php

<?php    
class chore_db{
    /**
     * @param int $id
     * @param string $user_name
     * @return Ambigous <multitype:, usersTbl>
     */
    public function  get_users($id, $user_name){
        $users = array();
        $sql = '';
        $con = null;


        $sql = 'SELECT id, chore_type, name, description, created_dt, created_by, modified_dt, modified_by FROM chores';// where id = IFNULL(?,id) and name = IFNULL(?,name)";
        $con = new mysqli('localhost','chore_admin','!chore_admin','chores');

        $stmt = $con->prepare($sql);

        //bind parameters
        //$stmt->bind_param('ss', $id_param, $name_param);
        //$id_param = $id;
        //$name_param = $user_name;
        //execute the sql

        $stmt->execute();

        //now bind the results to variables
        $stmt->bind_result($rs_id, $rs_chore_type, $rs_name, $rs_description, $rs_created_dt, $rs_created_by, $rs_modified_dt, $rs_modified_by);

        while($stmt->fetch()){
            $users[] = new usersTbl($rs_id, $rs_chore_type, $rs_name, $rs_description, $rs_created_dt, $rs_created_by, $rs_modified_dt, $rs_modified_by);

        }

        return $users;
    }
}



class usersTbl{
    public $id;
    public $user_name;
    public $first_name;
    public $last_name;
    public $created_dt;
    public $created_by;
    public $modified_dt;
    public $modified_by;

    public $user_chore_list;
    public $user_chore_date_list;

    //public function __construct(){}
    public function __construct($userId, $uName, $fName, $lName, $createdDT, $createdDT, $createdBY, $modifiedDT, $modifiedBy){
        $this->id = $userId;
        $this->user_name = $uName;
        $this->first_name = $fName;
        $this->last_name = $lName;
        $this->created_by = $createdBY;
        $this->created_dt = $createdDT;
        $this->modified_by = $modifiedBy;
        $this->modified_dt = $modifiedDT;
    }
}
  • 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-24T23:41:08+00:00Added an answer on May 24, 2026 at 11:41 pm
    <ul>
    <?php $ar = array('me','you','her');
    foreach ($ar as $user) {
        ?>
        <li><?php   echo $user;}?></li>  <<< this is at least one of the problems
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Eclipse PDT with XDebug to debug a PHP web application, is there
How do I run a PHP web page in Eclipse? I am using PDT
I want to use PDT to debug PHP with eclipse. I am using ubuntu
I have been using eclipse-pdt in conjunction with xdebug and apache without problems, for
Using Eclipse + PDT, I know that you can specify the return type of
I think my eclipse's ctrl+clicking links might benefit greatly... Edit: I'm using eclipse PDT.
I'm stepping through code using Eclipse PDT. When I mouseover an array it says
One particular problem I was having was using ${word_selection} in an Eclipse PDT template.
I am using Eclipse PDT and Subclipse. I want to set all of the
I am using Eclipse (PDT) for developing websites in PHP. As I have many

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.