i'm sorry...i don't even know what to call this...
but i want to output from a query but separate out the results...so instead of looping out a set of 10 records...i want to individually call them out as 1...2...3...4...in various locations in the html...
so instead of something like <? echo $row['output']; ?> is there a way to rewrite this so it is only output number 6 (or some number)?
thanks...vaska
You could read all the rows into and array when you do the query and then access this info in your page.
while( ($row[]=mysql_fetch_array($res))!==FALSE );
Now you can access the specific data later on.
echo $row[5]['col_name'];
HalfaBee
hmmm...did that...
simple query...call it up like this...
<? echo $row[12]['title']; ?>
and i only get the first character...???
any ideas?
i'll keep toying with this one...vaska
Do a print_r($row) or var_dump( $row ) to see what it contains.