[pLog-svn] db vs pdb confusion...

Jon Daley plogworld at jon.limedaley.com
Sun Jan 28 08:47:48 EST 2007


 	I see, yes, that seems like it would do what I wanted - thanks.

On Sat, 27 Jan 2007, Paul Westbrook wrote:

> Hello,
>    Would this do what you want?
>
> $query = "SELECT address ".
> "FROM {$prefix}subscribe ".
> "WHERE active=1 AND ".
> "type=".$type." AND " .
> "objid IN (";
>
> foreach($ids as $id)
>     $query .= "$id, ";
> $query .= "0)";
>
>
> This should create a where clause like "WHERE active = 1 AND type =
> <type> AND objid IN ( 1, 2, 3, 0)"


More information about the pLog-svn mailing list