That's about how I need and I need
This is a worthwhile knowledge in order to properly ask a question! I need it, but I need it so . Great and powerful Russian language.
SELECT ID,FIO FROM table WHERE ID='999';
Will you get everyone with ID 999 with this? Well, if you want just one line to be only in the loop after the request, but is there any point in this?
Take and bring everyone in the loop and do whatever you want with them.
For the future, the right question is 90% that the answer will be just as correct and quickly written.
// upd This query returns 4 rows with different FIO, but people have the same VNESHID, and I need these people to be grouped into one string.
So look, you get the correct data, just you process it correctly in a loop then
$q="select UP.FIO,UP.DOLQ from COM_ANKETA A left join COM_ORG_ANKETA_UP UP on UP.VNESHID=A.ID where A.ID in (:V$mainID)"; $res=mysql_query($q); while($row=mysql_fetch_array($res)) { echo $row['UP.FIO']."<br />"; }
Well, then do what you want, you want in one line, you want in two, three, five, ten.