Re: MySQL examples need review
| From: | Slawomir Pucia | Date: | Sun, 23 Dec 2001 19:27:36 +0000 |
| Subject: | Re: MySQL examples need review | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969340313@lists.php.net to get a copy of this message | ||
> 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-