Lol!
Well, I might as well use this post now
Problem...
I am using an incredibly round about way of doing this so PLEASE bear with me.
I am using a form to extract poo from my database.... I have two options (actually I have a lot, but 2 will do for now...). HTML or TXT and headings on or off.
If the HTML box is checked, the data is outputted in table form.
If TXT.... tab delimnated text (i.e. no formatting). Headings, naturally, will print row 0 as headings.....
However, it doesn't work. I was going to do:
If html ticked then htmlheadings(); then htmlit();
else txtheadings(); and txtit()...
BUT I can't put 'use' the functions as when I put the below into the function it says not MYSQL - bugger off... (the headings bit works fine so I guess the problem is with mysql access)
Code:
e.g. htmlit():
$i=0;
while ($i < $num){
$field1=mysql_result($result,$i,"field1");
etc...
// output as html
EDIT - If that isn't clear (I'm not sober), I'll repost tomorrow...