From: atomgas <at...@we...> - 2004-06-25 18:54:13
|
Hallo I am not sure if this is correct, my php 5 version is without mysqli so I cant try but you can use the mysqli in OO style or procedural and you use the procedural style , so I dont think you get an Object from mysqli_query() but from $mysqli =3D new mysqli(...); mysql->query() mfg Luzifer At 20:09 25.06.2004, you wrote: >mysqli_query returns: >"Returns TRUE on success or FALSE on failure. For SELECT, SHOW, DESCRIBE=20 >or EXPLAIN mysqli_query() will return a result object." > >mysql_query returns: >"...for SELECT,SHOW,EXPLAIN or DESCRIBE statements mysql_query() returns a= =20 >resource identifier or FALSE if the query was not executed correctly..." > >So mysqli_query returns an object while mysql_query returns an identifier. > >I don't fully understand what you are suggesting I try. Are you saying=20 >that I remove the "returns" =3D> "mysqliResultSet" line all together? I=20 >have tried just returning the result object as a 'custom class' but flash= =20 >still recieves an [object Object]. > > > >-----Original Message----- > >From: amf...@li... > >Sent: 06/25/04 - 12:38 > >To: amf...@li... > >Subject: RE: Re: [amfphp] MySQLi > > > >Hallo > > > >I have not tried this but I thnik > >you have to test if the result of mysqli function is a resource like > >from > >mysql function, > >then check the name of the resource and call your class like this name. > >do not use a "returns" =3D> "mysqliRecordSet" > > > >use "<the resource name> result" as returns or just > >dont give any return type > > > > > >mfg > >Luzifer > > > > > >At 18:56 25.06.2004, you wrote: > > > >>Does anyone here user PHP5 and mysqli? I have been trying to get > >amfphp > >>to return a result set from mysql using the mysqli function set but > >have > >>had no luck so far. You can see what I have done so far here (skip > >to > >>reply #18 to see my current situation plus code samples): > >>http://www.flash-db.com/Board/index.php?board=3D24;action=3Ddisplay;thre= adid=20 > =3D8918;start=3D15 > >>In short: NetDebugger in flash shows that I am recieving an [object > > > >>Object] from amfphp but I am unable to retrieve any data from that > >(it > >>appears empty). > >> > >>I have written a mysqliResultSet.php file which I think is working > >and > >>that didn't help. > >> > >>-Micah > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email sponsored by Black Hat Briefings & Training. > >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > >>digital self defense, top technical experts, no vendor pitches, > >>unmatched networking opportunities. Visit www.blackhat.com > >>_______________________________________________ > >>amfphp-general mailing list > >>amf...@li... > >>https://lists.sourceforge.net/lists/listinfo/amfphp-general > > >= >**************************************************************************= ** > >A T O M G A S =C2=AE > >http://atomgas.de > >BERLIN::GERMANY >= >**************************************************************************= ** > > > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >amfphp-general mailing list >amf...@li... >https://lists.sourceforge.net/lists/listinfo/amfphp-general **************************************************************************** A T O M G A S =AE http://atomgas.de BERLIN::GERMANY ****************************************************************************= =20 |