thanks, Robbie
John W. Holmes wrote:
From: "Robbie Staufer" <rstaufer@xxxxxxxxxxxx>
$result = mysql_query ("SELECT * FROM testdb WHERE Code_Name IN ('CLM',I'm formatting the display in a browser window. I need the second and
'CAM', 'CSIM', 'cpl5', 'POP')",$connection)
is there a php variable that holds the number of elements in the ()
after IN?
consecutive elements to be indented below the first one.
Something like this:
echo "element 0"
foreach additional element
echo "tab","element"
Where are CLM, CAM, etc coming from? You're not going to get it from the query, plain and simple. You're writing the query, though, so those values have to come from somewhere.
---John Holmes...
-- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Robbie Staufer NCAR/SCD 1850 Table Mesa Dr. Rm. 42 Boulder, CO. 80305 (303) 497-1836