vomitbomb Posted May 14, 2008 Share Posted May 14, 2008 I've got a php script that searches a database using the last name, and prints out order information. If there are 2 people with the same last name, I would like to be able to select between the 2. Any idea's on how I could do this? Sorry I don't have access to my code at the moment, can post later if need be.. Link to comment https://forums.phpfreaks.com/topic/105525-solved-grouping-and-selecting-like-results/ Share on other sites More sharing options...
p2grace Posted May 14, 2008 Share Posted May 14, 2008 Need a bit more information. What do you mean you would like to select between the two? You'd receive two results back on the search query for the last name, so selecting between the two would just be selecting one of the two results returned. Can you give us more detail of how exactly you'd like to use the results? Thanks Link to comment https://forums.phpfreaks.com/topic/105525-solved-grouping-and-selecting-like-results/#findComment-540645 Share on other sites More sharing options...
peranha Posted May 14, 2008 Share Posted May 14, 2008 If 2 people have the same last name, you will have to have a second search such as first name to identify between the 2. Link to comment https://forums.phpfreaks.com/topic/105525-solved-grouping-and-selecting-like-results/#findComment-540647 Share on other sites More sharing options...
vomitbomb Posted May 14, 2008 Author Share Posted May 14, 2008 yeah well thats it exactly. Link to comment https://forums.phpfreaks.com/topic/105525-solved-grouping-and-selecting-like-results/#findComment-540648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.