I don't donlt know how to use class methods in a mysql query, I would love to see a example of someone doing so!
| SitePoint Sponsor |
I don't donlt know how to use class methods in a mysql query, I would love to see a example of someone doing so!
What?
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget



How bout an example of what you're trying to do?
Confusing, but if I follow, maybe this helps...
PHP Code:<?php
$oUser = new User('4');
$sSQL = sprintf(
"SELECT id FROM users WHERE country = '%s'",
$oUser->getCountry()
);
?>
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.
Bookmarks