Skip to main content
Inspiring
August 4, 2006
Question

Quick and Easy - Dynamically Check If Recordset exists?

  • August 4, 2006
  • 2 replies
  • 338 views
Has anyboyd worked on a fucntion to dyncmially check and see if a recordset
exists?

I keep getting sql errors, I just need an ISSET or somethign for a recordset
(I haven't tried that, but will).

I'll post solution in hour or so if nobody has anything.

--

TIA,

Jon Parkhurst
PriivaWeb
http://priiva.net.


This topic has been closed for replies.

2 replies

Inspiring
August 4, 2006
arg. Why am I not able to set object names and use them?

I'm guessing that's what I'm running into with this, nonfunctional script?

//Free MySQL Resources used in /app/rs_general
$rsArray = array();
$rsArray[] = 'rsChurch';
$rsArray[] = 'rsCookieUserLookup';
$rsArray[] = 'rsMenuMain';

foreach($rsArray as $id=>$rs){
if (isset($rs)){
mysql_free_result($rs);
}
};

TIA if you know.

Jon

"crash" <crash@bcdcdigital.com> wrote in message
news:eb02fm$9up$1@forums.macromedia.com...
> wow, talk about posting too fast. I guess at least it'll be in the
> archives to later.
>
> if(isset($rsName)){
> return true;
> }
>
> I would still like to know if there's a method that allows me to list
> recordset objects on the page, so if you read this and know that - post er
> up buuuuuuudy!
>
> TIA,
>
> Jon
>
> "crash" <crash@bcdcdigital.com> wrote in message
> news:eb00ru$7vv$1@forums.macromedia.com...
>> Has anyboyd worked on a fucntion to dyncmially check and see if a
>> recordset exists?
>>
>> I keep getting sql errors, I just need an ISSET or somethign for a
>> recordset (I haven't tried that, but will).
>>
>> I'll post solution in hour or so if nobody has anything.
>>
>> --
>>
>> TIA,
>>
>> Jon Parkhurst
>> PriivaWeb
>> http://priiva.net.
>>
>
>


Inspiring
August 4, 2006
wow, talk about posting too fast. I guess at least it'll be in the archives
to later.

if(isset($rsName)){
return true;
}

I would still like to know if there's a method that allows me to list
recordset objects on the page, so if you read this and know that - post er
up buuuuuuudy!

TIA,

Jon

"crash" <crash@bcdcdigital.com> wrote in message
news:eb00ru$7vv$1@forums.macromedia.com...
> Has anyboyd worked on a fucntion to dyncmially check and see if a
> recordset exists?
>
> I keep getting sql errors, I just need an ISSET or somethign for a
> recordset (I haven't tried that, but will).
>
> I'll post solution in hour or so if nobody has anything.
>
> --
>
> TIA,
>
> Jon Parkhurst
> PriivaWeb
> http://priiva.net.
>