Checking for EOF (for any rows)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I simply need to check for wtether my SQL request returns any data -
any row = yes.

AFAIK there is no other way than:

  // if any row exist


Re: Checking for EOF (for any rows)

Sonnich wrote:

Quoted text here. Click to load it

Since you're using ODBC, why not use odbc_num_rows()?

Like this:

if (odbc_num_rows($result2) > 0) {
  // bla bla bla

Kim André Akerø
(remove NOSPAM to contact me directly)

Site Timeline