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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:04:23+00:00 2026-06-16T06:04:23+00:00

i have 2 tables, T1 has attributes for form as name,address,rating with its corresponding

  • 0

i have 2 tables, T1 has attributes for form as name,address,rating with its corresponding control type as text,textarea,integer respectively.

In another table T2,i store value from form and has columns valuechar,valuetext,valueint into which value of name,address and rating is saved in different rows for a single form.Now I want to make query and result the following result from the above two tables.

array(
      [name]=>value from valuechar
      [address]=>value from valuetext
      [rating]=>value from valueint
)

how do i do this effectively.

  • 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-16T06:04:25+00:00Added an answer on June 16, 2026 at 6:04 am

    Why don’t you make one table and make those 3 fields?

    Anyways; if the results are exactly the same you can do something like this:

     $dataArray1 = mysql_fetch_array..? // Table2
     $dataArray2 = mysql_fetch_array..? // Table2
    
     $data = array();
    
     for($i = 0; $i < count($dataArray1); $i++) {
        $data = $dataArray1[$i] = $dataArray2;
     }
    

    Give me a little more information about what you are trying to achieve and maby we can work something out!

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

Sidebar

Related Questions

I have a simple form method... <form method=POST action=j_security_check> <table> <tr> <td>Name:</td> <td><input type=text
I have 2 tables as follow : table1 has these fields: year,day,month,name table2 has
I have a HTML form where i dynamically create elements and set its name
I have two tables Department Professor in which Department has an attribute called HeadID
I have a database that has a table email_eml that stores 3 attributes name_eml,
I have two tables: object that has object_id column and avalues that have object_id
I have SQL Server 2008 R2 and one of my tables has a date
I have an existing database in mysql. One of my tables has discontinuous ids.
I have two tables - table1 and table2 table1 has 14 columns and table2
i have 5 tables,in every table it has 4 rows. so i need 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.