Object Display

Phase $phase - Object ".$id.""; msql_connect("tecfa.unige.ch"); $table = "phase_".$phase; $result = msql("studio","SELECT * FROM ". $table . " WHERE id=$id"); /* Authors' names */ echo "

"; $authors_id = explode(":",msql_result($result,0,"authors")); for ($j=0 ; $j < count($authors_id) ; $j++) { $author = msql("studio","SELECT username FROM auth WHERE id=". intval($authors_id[$j])); echo ""; echo "".msql_result($author,0,"username").", "; echo ""; } echo " on " . msql_result($result,0,"when_date"); echo " at " . msql_result($result,0,"when_time"); echo "

"; echo "

" . msql_result($result,0,"title") . "

"; echo "

" . msql_result($result,0,"description") . "

"; $parents = explode(":",msql_result($result,0,"parents")); msql_close(); /* Object */ include("display/$table.php3"); ?> "; } echo "
"; for ($k=0 ; $k < count($parents);$k++) { $parent = msql("studio","SELECT id, thumb_url FROM ".$parent_table." WHERE id=". intval($parents[$k])); echo "

" .$parent_table ."
Object ". msql_result($parent,0,"id") ."

"; } ?> "; while ($l < msql_numrows($kids)) { echo "

" .$kids_table ."
Object ". msql_result($kids,$l,"id") ."

"; $l++; } echo ""; } msql_close(); ?>