[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] PHP & MySQL
On Friday 08 March 2002 10:16 pm, you wrote:
> the pages are brilliant, examples are crystal clear and work out of the
> box--except I am puzzled by one wee thing:
> I don't get carriage returns from the (shortened) snippet
>
> while ($row = mysql_fetch_row($result)) {
> printf("%s %s\n", $row[0], $row[1]);
> }
This won't, as I didn't put on in. D'Oh!
> nor does echo "stuff\n" produce a cr. Bug or feature? Anyone else have
> similar behaviour?
It does produce one, but only in the source HTML. You need to echo <br> to
break the line in the output document in the browser window. It is just HTML,
after all.
When I finish the outputting tutorial, this will become crystal clear :)
> btw I am a complete beginner at AMP...but I might just get hooked...
It is a very easy way to get into web development, thanks to the miriad ways
PHP can do anything. Some of it's concepts and obejct orientation
implementation is a bit knackered, but as a prodecural language it is just
fine :)
Craig
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.