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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:09:47+00:00 2026-05-31T22:09:47+00:00

Array ( [0] => Array ( [SubID] => 19 [0] => 19 [RandomCode] =>

  • 0

Array ( [0] => Array ( [SubID] => 19 [0] => 19 [RandomCode] =>
P57bz0y24DdKofbI6M4BqJfDs0QNtL2XpBANnzys [1] =>
P57bz0y24DdKofbI6M4BqJfDs0QNtL2XpBANnzys [Email] => as@sasa.com [2] =>
as@sasa.com [CreateDate] => 2012-03-25 [3] => 2012-03-25 [UpdateDate]
=> 0000-00-00 [4] => 0000-00-00 [27_t1] => [5] => [31_asas] => 0 [6] => 0 ) )

The result is like this now but i can not get it by

echo $result['Email'];

Why is the error? Thank you

  • 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-31T22:09:48+00:00Added an answer on May 31, 2026 at 10:09 pm
    SELECT   ? 
    

    not good!

    the list of columns you’re selecting shouldn’t be a bind variable, because (as a string value) it will then be enclosed in quotes rather than backticks. MySQL will then treat it as a simple quoted string, and return that quoted string (‘Email’) rather than the actual column you want for each record that it returns.

    Don’t bind the column name. Use SELECT *, just the one bind variable for the SubID value in your WHERE clause.

    When you’ve done fetchAll(), then walk the result extracting the column that you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

foreach ($result as $user) { $replacements[$user['Email']] = array( '{FirstName}'=>$user['FirstName'], '{LastName}'=>$user['LastName'], '{Code}'=>$user['RandomCode'] ); } That
Array starts like this: Array ( [SMART Board] => Array ( [0] => sb1
Array { [0] => http://abc.com/video/ghgh23; [1] => http://smtech.com/file/mwerq2; } I want to replace the
Array ( [0] => myemail@domain.com [1] => mysecondemail@domain.com [2] => invalidEmail.com ) Notice that
I have a nested array like this: array = [ { id: 67, sub:
Array is like this: Array ( [0] => 2011/10/05 ) Array ( [0] =>
Array 1 | Array 2 ================= 1 | 2 2 | 3 3 |
Array.Copy and Buffer.BlockCopy both do the same thing, but BlockCopy is aimed at fast
Array ( [4] => stdClass Object ( [vid] => 4 [name] => Movie [description]
Array ( [status] => success [stories] => Array ( [0] => Array ( [name]

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.