[ciapug] Adodb -> mssql, grabbing from a result set

Dave J. Hala Jr. ciapug@cialug.org
15 Dec 2003 10:20:47 -0600


Ok, time for me to ask a silly question.

What does the "->" operator signify? 

Is this like the linux command line ">" operator?

On Mon, 2003-12-15 at 10:14, Chris Hettinger wrote:
> Those that are familiar with ADODB...
> 	
> 	$sql = "SELECT LastGenID FROM QTII_UR.dbo.urlastgenid WHERE userid = 'encwebtools'";
>         	$rsCaseID = $qtdb->Execute($sql);
> 
> >> Succeeds, Returns 1 record with the value '3281608'
> 
>         	$caseID = $rsCaseID->fields['LastGenID'];
> 
> $caseID is empty... Though my select is succeeding the assignment is not grabbing the value of the field. I have also tried the assignement like this:
> 
> 	$caseID = $rsCaseID->fields[0]; // still nothing.
> 
> I have review the Adodb manual, but not sure if I need to do this assignment differnet since I am querying a Mssql DB ???
> 
> -Chris Hettinger, Web Specialist
> -IFMC/ENCOMPASS
> -www.encompas.com
> -(515) 279-8730
> 
> 
> 
> CONFIDENTIALITY NOTICE:  This communication, including any attachment, may contain confidential information and is intended only for the individual or entity to whom it is addressed.  Any review, dissemination, or copying of this communication by anyone other than the intended recipient is strictly prohibited.  If you are not the intended recipient, please contact the sender by reply email, delete and destroy all copies of the original message.'
> 
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
-- 

"...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and the Ugly)"

OSIS
Dave J. Hala Jr.
641.485.1606