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

  • Home
  • SEARCH
  • 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 7630813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:11:44+00:00 2026-05-31T06:11:44+00:00

Assuming I have a uniqid key in my table and that same key is

  • 0

Assuming I have a uniqid key in my table and that same key is sent to my site in a get method, how do I pull that specific key out and assign all the data from the table to variables. This is what I have so far but cant seem to figure it out.

$query1 = "SELECT * 
       FROM todo_item2 as ti INNER JOIN todo_category2 as tc ON ti.todo_id = tc.todo_id'
       WHERE todo_id = :todo_id";

$statement1 = $db->prepare($query1);
$statement1 -> execute(array(
    'todo_id' =>$id
));

while ($row = $statement1->fetch()) 
{
    $text = $row['todo'];
    $cat = $row['category'];
    $percent = $row['precent'];
    $date = $row['due_date'];
}
  • 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-31T06:11:45+00:00Added an answer on May 31, 2026 at 6:11 am
    // Start the Load
    $query1 = "SELECT * 
               FROM todo_item2 as ti INNER JOIN todo_category2 as tc ON ti.todo_id = tc.todo_id
               WHERE ti.todo_id = :todo_id";
    
    $statement1 = $db->prepare($query1);
    $statement1 -> execute(array(
        'todo_id' =>$id
    ));
    
    // Make Sure the Data Exists
    if( $statement1->rowCount() == 0 )
    {
        die('Please Enter a Valid ID Tag - (id)');
    }
    
    
    while($row = $statement1->fetch())
    {
        $text = $row['todo'];
        $cat = $row['category'];
        $percent = $row['percent'];
        $date = $row['due_date'];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assuming I have a class with a method that takes a System.Linq.Expressions.Expression as a
Assuming I have a table with one field called ID that stores 100 different
Assuming I have a method in my command architecture pattern that alters the contents
Assuming you have only the URL to a file (hosted on the same server
Assuming we have a salt that's in the database and that has been generated
Assuming I have the following options Hash as an argument to a method in
Assuming I have a schema that describes a root element class Root that contains
Assuming I have a method which accepts an IList or similar thing as a
Assuming I have an instance of an object that I know belongs to a
Assuming you have the following database table: create table Names ( Id INT IDENTITY

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.