RE: [PHP] stupid question about a class

From: Date: Wed, 08 Dec 2004 18:29:07 +0000
Subject: RE: [PHP] stupid question about a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203750@lists.php.net to get a copy of this message
In your class function you should move your query to a variable e.g. $query Then: return $query; And in your main program: $whatever = $q->getQuery(); __ Stefan > -----Ursprüngliche Nachricht----- > Von: Richard Kurth [mailto:rdkurth@directphp.com] > Gesendet: Mittwoch, 8. Dezember 2004 19:21 > An: PHP General > Betreff: [PHP] stupid question about a class > > > I have a stupid question but I can not figure it out > I am using a class that creates the select statement for mysql. > I am ale to add all the data with out any problem. But when I run the > class to get the results. I can only see the results by running echo in > front of the call to the class . > echo $q->getQuery(); > Output SELECT * FROM listing WHERE state='wa' > if I > $q->getQuery(); > echo $g; > Output Object id #1 > How do I use the results in my mysql query If I can not move it to a > variable > > > > > -- > Best regards, > Richard mailto:rdkurth@directphp.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#203750) next »