Page 2 of 2

Posted: Mon Mar 22, 2004 5:43 am
by koola
Oh, I just noticed, the cat is always being outputed as a 1, this is probs why the 'dvd.db.txt' is always selected.

How is it always being outputed as a 1 then?

Posted: Mon Mar 22, 2004 5:44 am
by patrikG
echo fwrite so it reads:

Code: Select all

echo "<h3>bytes written:</h3> ".fwrite($data, $news);

Posted: Mon Mar 22, 2004 5:46 am
by patrikG
Ack, bloody monday mornings. I didn't see that in your if statements you're assigning a value to $cat rather than comparing.

Use == instead of =

Posted: Mon Mar 22, 2004 5:52 am
by koola
Yay, it works :D

Thank you very much patrikG!

Posted: Mon Mar 22, 2004 5:55 am
by patrikG
<--- needs glasses and a coffee.

Glad it worked.