SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Help fix my query issue!
-
Jul 16, 2009, 05:17 #1
- Join Date
- Mar 2008
- Posts
- 49
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Help fix my query issue!
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!
-
Jul 16, 2009, 05:51 #2
What?
Guido - Community Team Leader
The Votes Are In: The Winners of the 2013 Community Awards are...
Blog - Free Flash Slideshow Widget
-
Jul 16, 2009, 05:52 #3
- Join Date
- Sep 2006
- Posts
- 428
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How bout an example of what you're trying to do?
-
Jul 16, 2009, 07:06 #4
- Join Date
- Apr 2008
- Location
- North-East, UK.
- Posts
- 6,111
- Mentioned
- 3 Post(s)
- Tagged
- 0 Thread(s)
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