To access the other column( s) of the same name, you must use the numeric index of the column or make an alias for the column.
?php ingres_query( select t1.f1 as foo t2.f1 as bar from t1, t2); $result = ingres_fetch_array(); $foo = $result["foo"]; $bar = $result["bar"];?