Rev 4 | Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 5 | ||
---|---|---|---|
Line 202... | Line 202... | ||
202 | function mysql_field_name($result, $field_offset) { |
202 | function mysql_field_name($result, $field_offset) { |
203 | if (!$result) { |
203 | if (!$result) { |
204 | $err = mysql_error(); |
204 | $err = mysql_error(); |
205 | throw new Exception("Called mysql_field_name() with an erroneous argument.".($err == '' ? '' : " Possible cause: $err")); |
205 | throw new Exception("Called mysql_field_name() with an erroneous argument.".($err == '' ? '' : " Possible cause: $err")); |
206 | } |
206 | } |
207 | return $result->fetch_field_direct()->name; //or "orgname" |
207 | return $result->fetch_field_direct($field_offset)->name; //or "orgname" |
208 | } |
208 | } |
209 | 209 | ||
210 | // Setzt den Ergebniszeiger auf ein bestimmtes Feldoffset |
210 | // Setzt den Ergebniszeiger auf ein bestimmtes Feldoffset |
211 | function mysql_field_seek($result, $field_offset) { |
211 | function mysql_field_seek($result, $field_offset) { |
212 | if (!$result) { |
212 | if (!$result) { |