Not sure if I agree they need to be identical, I did last month but now it
doesn't seem like a big deal (pending discussion).  Variety is the spice
of life :)

Regarding below examples, 'single quotes' should be used in every
instance. The spacing looks fine, though.  And, whether or not to define a
link id, like $conn, not sure.  Currently I'm for defining one but am not
concerned.

Regards,
Philip Olson

On Sun, 23 Dec 2001, Slawomir Pucia wrote:

> > Regarding whether to use echo or print, concat variables or not, etc.  No
> > need to get that specific imho.  Just the basics, like formatting.
> 
> It simply looks nicer for reader if all examples (at least in one chapter)
> are similar. Look at these lines from mysql.xml:
> 
> mysql_connect("mysql_host", "mysql_login", "mysql_password")
> mysql_connect("kraemer", "marliesle", "secret")
> mysql_connect("localhost", "username", "secret")
> mysql_pconnect("kron", "jutta", "geheim")
> mysql_connect('dbhost', 'username', 'password');
> 
> I'm sure we can work out a set of standard values for host, username and
> password, and use them in mysql.xml or even in other database-related
> chapters. Although, it's more than just formatting, but IMHO it can help a
> reader.
> 
> slawek-
> 
> 
> 
> 

Reply via email to