РАБОТЫ :: ".@mysql_result($result1,0,"name")." (".$tempN.")

"; for($i=0; $i<$tempN; $i++) { $name=mysql_result($result,$i,"name"); $author_id=mysql_result($result,$i,"author_id"); $direction_id=mysql_result($result,$i,"direction_id"); $sql_a="SELECT * FROM authors where (id=$author_id)"; $result_a=mysql_query($sql_a); //print "DirId = $direction_id
"; $sql_d="SELECT * FROM directions where (id=$direction_id)"; $result_d=mysql_query($sql_d); $image=mysql_result($result,$i,"image"); $thumb=mysql_result($result,$i,"thumb"); $image_id=mysql_result($result,$i,"id"); list($width, $height) = getimagesize($root.'bio/data/files/pictures/image/'.$image); echo "".mysql_result($result_a,0,"name").": ".$name." (".mysql_result($result_d,0,"name").")
"; } ?>