473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

mysql_fetch_assoc

11
hi everyone

will you please help me solve my problem:
i have several tables and i should use them at the same time i.e. i should join them. now i have to get some some information from some of these tables`s fields and print them in a specefic order on the screen. how can i do that???
i thought of mysql_fetch_assoc but it`s useful while using one table
can i still use it or i should do sth else
please let me know about your ideas

thanx a million
Sep 4 '06 #1
3 1340
phpmaet
27
hi,
you should go and read sub-query format.

thanks
Sep 6 '06 #2
ronverdonk
4,258 Expert 4TB
phpmaet: Why should he read the sub-query format? All he wants is to combine his results per row.

fetch_assoc will store the result of your query in a associative array. It does not matter how many tables are involved in that query, all MySql selected fields are available in your fetch-assoc result.
Or do I understand your question incorrectly?

Ronald :cool:
Sep 6 '06 #3
saeedeh
11
phpmaet: Why should he read the sub-query format? All he wants is to combine his results per row.

fetch_assoc will store the result of your query in a associative array. It does not matter how many tables are involved in that query, all MySql selected fields are available in your fetch-assoc result.
Or do I understand your question incorrectly?

Ronald :cool:
hi
thank you both. yes Ronald .you were right. all i needed was to combine all of my selected fields so that i could use and print them in the order i wanted.now i know the number of tables doesn`t matter in using mysql_fetch_assoc

thanx again
Sep 10 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alucard | last post by:
Hi all. I am a newbie in PHP. Recently I found that there are mainly two ways to fetch mysql(or other DB) data: by object or by array. What is the main differences between them? Will the...
3
by: Paul Lautman | last post by:
Are there any benefits to using mysql_fetch_object() instead of mysql_fetch_assoc()?
3
by: smythe70 | last post by:
How do mysql_query() and mysql_fetch_assoc() actually work? When I submit a query to a MySQL database it goes away, works out what I requested and throws it back at me. When I submit a query...
2
by: phattymatty | last post by:
I am having trouble getting this loop to do what I would like it to. I need to display information from a multidimensional array in order. The order has already been sorted in the array using a...
5
by: clodhoppers18 | last post by:
I am trying to get the following code to work, and I am having some problems: The code goes for actually 110 lines, but I have dismissed what is not needed. The connection and all that works for...
9
by: divyalax | last post by:
i want to fetch the students numbers from my database using mysql_fetch to a combo box created in my html. please help me
3
sanjay123456
by: sanjay123456 | last post by:
Dear friends , Plz any one tell me What is difference between mysql_fetch_assoc and mysql_fetch_array while both are return associtive array ?
1
by: bytesFTW99 | last post by:
Ok I have a problem! i have a mysql_fetch_assoc that does not recognize the NULL value of the column. however, i want this null to be picked up so i can use it. how can i go about doing that? ...
2
by: bytesFTW99 | last post by:
i have an array that is pulling down information from a database that has null values. how can a get the mysql_fetch_assoc to recognize this null value as just empty space to fill in a form as white...
2
by: poreko | last post by:
I am connecting to my database using Object oriented PHP. My query is returning results but at the end of my table,at the bottom of the page I keep having this error when I run my program: Warning:...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.