Re: looking for a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm formatting the display in a browser window. I need the second and consecutive elements to be indented below the first one.
Something like this:
echo "element 0"
foreach additional element
echo "tab","element"


Thanks,
Robbie


Bruno Ferreira wrote:


Robbie Staufer wrote:

Hi,

In a statement like:

$result = mysql_query ("SELECT * FROM testdb WHERE Code_Name IN ('CLM',
'CAM', 'CSIM', 'cpl5', 'POP')",$connection)

is there a php variable that holds the number of elements in the () after IN?



No :\


What did you want to do with that number? Maybe there is some other way around....


Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus]


-- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Robbie Staufer NCAR/SCD 1850 Table Mesa Dr. Rm. 42 Boulder, CO. 80305 (303) 497-1836

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux