Re: Indentation in mysql examples

From: Date: Thu, 02 May 2002 23:32:02 +0000
Subject: Re: Indentation in mysql examples
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345191@lists.php.net to get a copy of this message
At 00.24 03/05/02 +0200, =?iso-8859-2?Q?S=B3awomir_Pucia?= wrote:
Probably you didn't get the point. Since 1.101 many examples look like... <?php
    /* Connecting, selecting database */
    $link = mysql_connect("mysql_host", "mysql_user", "mysql_password")
        or die("Could not connect");
    print "Connected successfully";
[...] Until 1.101 they looked like... <?php /* Connecting, selecting database */ $link = mysql_connect("mysql_host", "mysql_user", "mysql_password")
    or die("Could not connect");
print "Connected successfully"; [...] The question is whether or not to use these 4 spaces in each line. If yes, I will correct the rest of mysql related files, and use it in pl/.
I've read that we should start at column 1 in examples: Take a look at: /phpdoc/RFC/coding_standards -- "Tutto e' possibile in Maggio. In May, everything is possible." -- Mario Bisio.

« previous php.doc (#969345191) next »