РАБОТЫ :: ".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"); $category_id=mysql_result($result,$i,"category_id"); $sql_a="SELECT * FROM authors where (id=$author_id)"; $result_a=mysql_query($sql_a); $sql_c="SELECT * FROM categories where (id=$category_id)"; $result_c=mysql_query($sql_c); $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_c,0,"name").")
"; //echo "".$name.' ('.mysql_result($result_a,0,"name").': '.mysql_result($result_c,0,"name").')
'; } ?>