RE: [Grouptime-developers] The pre-FINAL of Coding Standards
Status: Pre-Alpha
Brought to you by:
sauanimal
|
From: Jan U. <ja...@ko...> - 2002-09-09 06:39:06
|
Hi!
> I want to comment:
> - Point 2.1, "the start and the end tags of the PHP script
> must be <? and ?>. Do not use <?php tags." Why? I think <?php
> is more standard.
Actually there isn't any constructive reasons, I just like <? more than
<?php. It's more elegant if you like :)
> - Point 2.1 too, database query. Can we separate the SQL
> portion (with string variable)? That's make the SQL easy to
> build dynamic.
Yes, we can, actually I didn't mentioned this in the standard, I just
wrote how should be written the SQL query itself. Of couse, we can
use
$sql = "SELECT field FROM table";
$result = dbQuery($sql);
or
$result = dbQuery("SELECT field FROM table");
> - Correction about typo :) Point 2.3, "all the custom
> function ...", should $HTTP_GET_VARS is $_GET ?
Yes, thnx :)
Jan
|