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!
Printable View
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?
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()
);
?>