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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:54:05+00:00 2026-06-13T01:54:05+00:00

code $records = $this->User->find(‘all’, array( ‘conditions’ => array(‘User.email’ => ‘prakashgupta3@gmail.com’))); database database fields(id,username,email,img_name,password) table

  • 0

code

$records = $this->User->find('all', array( 
'conditions' => array('User.email' => 'prakashgupta3@gmail.com')));   

database

database fields(id,username,email,img_name,password)
 table name is signup

This is my select query..using find all in cakephp..the query is running fine.

Under this i want to access the row in the database where email=’prakashgupt3@gmail.com.

it is clearly defined above and easily understood by cakephp users. I’m new to cakephp right now.

Just tell me how to display the data which is stored in the record variable, coz record is returning an array,,when i print $record then the output is “Array”…
Your replies are mostly welcome.
….Thankyou…..

  • 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-06-13T01:54:06+00:00Added an answer on June 13, 2026 at 1:54 am

    cakephp find('all') will return array like this

       Array
    (
    [0] => Array
        (
            [ModelName] => Array
                (
                    [id] => 83
                    [field1] => value1
                    [field2] => value2
                    [field3] => value3
                )
    
            [AssociatedModelName] => Array
                (
                    [id] => 1
                    [field1] => value1
                    [field2] => value2
                    [field3] => value3
                )
    
        )
    )
    

    so you need to access it like $records[0]['User']['email'], $records[1]['User']['email']... $records[key]['User']['email']

    also

    foreach ($records as $k => $v) {
           echo $v['User']['email'];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: @posts = Post.joins(:user).joins(:blog).select which is meant to find all
I use the find('all') function to retrieve the post records from my database, but
I try to retrieve all database records from Tournament which belongs to User. $cond
I have written this code inside a servlet to delete certain records from three
I've got this code: def __parse(self): for line in self.lines: r = Record(line) self.records[len(self.records):]
I have stored 6 records in mysql db,when i use this code each of
I hope I am doing this correctly.. Using this code I am grabbing records
I currently have this code which reads the first field in a database record
When I launch code with this query, sometimes I can see all the tables
where can I find samples for this? Most of my code using ColumnFamilyTemplate to

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.