Re: [PHP] Day after Friday

2012-09-22 Thread Paul M Foster
On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: > Hi gang: > > I know it's the Day after Friday, but I'm asking a off-topic question anyway > -- sorry. > > Normally, I teach a PHP class at the local college, but it got canceled > (don't ask why) -- now I'm teaching Java. > > So

[PHP] Day after Friday

2012-09-22 Thread Tedd Sperling
Hi gang: I know it's the Day after Friday, but I'm asking a off-topic question anyway -- sorry. Normally, I teach a PHP class at the local college, but it got canceled (don't ask why) -- now I'm teaching Java. So, can anyone recommend a Java list that is similar to this list? Cheers, tedd

RES: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
When I said that it’s a form of documentation, I was saying that I think it’s better to know everything the script is using from the tables right on the SQL command, without the need to inspect all the code, for example: SELECT * FROM a; $values = some_fetch_array_thing […] bunch of lines o

Re: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 12:12 -0300, Samuel Lopes Grigolato wrote: > I disagree with you Ashley, some arguments can be found here: > http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/10/bad-habits-to-kick-using-select-omitting-the-column-list.aspx > > Using explicit columns names in the sele

RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
I disagree with you Ashley, some arguments can be found here: http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/10/bad-habits-to-kick-using-select-omitting-the-column-list.aspx Using explicit columns names in the select clause is, IMHO, at least a good documentation for what is being reque

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 16:19, Samuel Lopes Grigolato wrote: +1 to bad maintainability of the code. As a suggestion, one better solution could be something like: [...] class Entity { public $id; public $name; } [...] $entity = new Entity(); foreach [...] $entity->$$key = $value; [...] And

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
Samuel Lopes Grigolato wrote: >+1 to bad maintainability of the code. > >As a suggestion, one better solution could be something like: > >[...] > >class Entity { > public $id; > public $name; >} > >[...] > >$entity = new Entity(); >foreach [...] > $entity->$$key = $value; > >[...] > >And,

RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Samuel Lopes Grigolato
+1 to bad maintainability of the code. As a suggestion, one better solution could be something like: [...] class Entity { public $id; public $name; } [...] $entity = new Entity(); foreach [...] $entity->$$key = $value; [...] And, of course, never ever use "*" in SQL queries. Samue

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Matijn Woudt
Op 22 sep. 2012 13:47 schreef "Ashley Sheridan" het volgende: > > On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: > > > Hi Ashley > > > > I am updating some one code. Thanks for the notify. > > > > Thanks to all. Now I get that. > > --

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: > Hi Ashley > > I am updating some one code. Thanks for the notify. > > Thanks to all. Now I get that. > -- > Dedicated Linux Forum in Bangladesh > 2048R/8

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashickur Rahman Noor
Hi Ashley I am updating some one code. Thanks for the notify. Thanks to all. Now I get that. -- Dedicated Linux Forum in Bangladesh 2048R/89C932E1 Coordinator - Public Relation Cell, FOSS Banglades

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote: > On 22-09-2012 12:34, Ashickur Rahman Noor wrote: > > Hi all > > > > I need some help to understand a code. The code is like this > > > > $result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL); > >> if($row = mysql_fetch

[PHP] Re: Need help to understand a code

2012-09-22 Thread Maciek Sokolewicz
On 22-09-2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =>$value){

Re: [PHP] Need help to understand a code

2012-09-22 Thread Stefan Wixfort
On 22.09.2012 12:34, Ashickur Rahman Noor wrote: Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL); if($row = mysql_fetch_array($result)) { foreach($row as $key =>$value){

[PHP] Need help to understand a code

2012-09-22 Thread Ashickur Rahman Noor
Hi all I need some help to understand a code. The code is like this $result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL); > if($row = mysql_fetch_array($result)) > { > foreach($row as $key =>$value){ $$key=$value;} > } > I don't get the code fr

[PHP] Intermittent error on hosted service

2012-09-22 Thread Lester Caine
A PHP Error was encountered Severity: Warning Message: require(): Unable to allocate memory for pool. Filename: core/Common.php Line Number: 145 Where should I be looking to fix this problem? OTHER than switching off displaying warnings ... but the site code IS currently set to off, so that is a