|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I've been trying to display multiple text in a page using the MySQL, this the one i'm using right now:
select * from coder where user_id='$profile' group by user_id order by title Lets say I have 3 records in the coder table. two with same user_id since I want both titles from this user to be shown on same page. When I try the code above it only shows the first record of this user. Anyone know what i'm doing wrong? Thanks, Toby |
|
#2
|
|||
|
|||
|
Get rid of the group by clause. Since you aren't using any functions that requires the records to be grouped it isn't doing anything... except causing you to only get one record per user_id.
|
|
#3
|
|||
|
|||
|
I removed the 'group by user_id' part but it still only show the first record.
Is it something else I should put there too? Thanks, Toby |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Multiple records |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|