Current time: 05-04-2024, 11:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
Coding style
Author Message
momo Offline
Junior Member
*

Posts: 148
Joined: Jun 2008
Reputation: 1
Post: #1
Coding style
I have noticed that most sql query are done like this, whitch is pretty easy to read :

$query = <<<SQL_QUERY
SELECT
alias_id, alias_name
FROM

According to ispCP documentation, shouldn't it be :
http://www.isp-control.net/documentation...ding_style

$sql = "SELECT `id`, `name` FROM `people` "
. "WHERE `name` = 'Susan' "
. "ORDER BY `name` ASC ";

(dot aligned with equal sign)


Thank you
(This post was last modified: 09-11-2008 12:48 AM by momo.)
09-11-2008 12:47 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Coding style - momo - 09-11-2008 12:47 AM
RE: Coding style - sci2tech - 09-11-2008, 01:06 AM
RE: Coding style - momo - 09-11-2008, 01:13 AM
RE: Coding style - sci2tech - 09-11-2008, 01:15 AM
RE: Coding style - momo - 09-11-2008, 01:23 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)