<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=078310518-26082009>Since I see Larry
Garfield has looked at this list today, I thought I would ask this now since I
just had this come up.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=078310518-26082009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=078310518-26082009>I know about the
new ":label" for substitution in D7 and have no problem with that. But what
do I do with an array of values, as in:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=078310518-26082009>
$types = variable_get('my_types_list', array());</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=078310518-26082009> $args
+= $types;</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=078310518-26082009>
$result = db_query(..., $args);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=078310518-26082009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=078310518-26082009>Yes, I properly used
db_placeholders to set the "%s" values in place. The query works fine in
D6, it's just that I am already looking at teh upgrade and wondered about how to
do arrays of values like this, when I can't go in and add a label to
them.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=078310518-26082009></SPAN></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" color=#ff00ff size=4>Nancy E. Wichmann,
PMP</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2><FONT face="Courier New">Injustice
anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
Jr</FONT>.</FONT></DIV>
<DIV> </DIV></BODY></HTML>