Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 16:18, Bill Guion wrote: > At 8:31 AM -0400 08/06/10, tedd wrote: > >> Cheers, >> >> tedd >> >> PS: Considering that this is Friday. I have a grammar question for the >> group. I said above: >> >> "neither CSS, PHP, or any web language exist in a vacuum." >> >> Is the word "neithe

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Bill Guion
At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: "neither CSS, PHP, or any web language exist in a vacuum." Is the word "neither" appropriate in this sentence? Normally, two items can be compare

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote: On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: While it may not be obvious, the statement: > is flawed (IMO). The "best" way to handle this is to define a class (or id) for the table in a css file and then set the border (i.e., styling) to

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: > While it may not be obvious, the statement: > > > > is flawed (IMO). > > The "best" way to handle this is to define a class (or id) for the table in > a css file and then set the border (i.e., styling) to whatever you want. For > example, your HTML wo

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 13:31, tedd wrote: >I have a grammar question for the > group. I said above: > > "neither CSS, PHP, or any web language exist in a vacuum." > > Is the word "neither" appropriate in this sentence? > > Normally, two items can be compared by "neither"  or "nor", but what about > more

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Floyd Resler
On Aug 6, 2010, at 8:08 AM, tedd wrote: > At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: >> 2nd question, in the 3 [2] lines below: >> >> $checkstat = "select field from table where fieldid = $field_id"; >> $result1 = @mysql_query($checkstat,$connection) or die("Couldn't execute >> query"); >> >>

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:05 PM -0700 8/5/10, Michael Shadle wrote: Leave the single quotes for parameters, indexes, code, not attributes - $.02 Agreed. "Render unto Caesar (HTML) the things that are Caesar's and unto God (PHP -- Lord forgive me) the things that are God's." In other words, when writing code in

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 11:00 PM -0400 8/5/10, Paul M Foster wrote: On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: > echo " And elsewhere on the page it follows: > echo ' Not acceptable and sloppy. Be consistent in your coding style. In general, HTML attributes should be surrounded by do

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: 2nd question, in the 3 [2] lines below: $checkstat = "select field from table where fieldid = $field_id"; $result1 = @mysql_query($checkstat,$connection) or die("Couldn't execute query"); If I were to recode in the latter style, should they not look

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 07:34, Peter Lind wrote: > On 6 August 2010 04:10, Rick Dwyer wrote: >> Hi List. >> I've mentioned before that I am both just beginning to learn PHP AND I have >> inherited a number of pages that I'm trying to clean up the w3c validation >> on. >> >> Something that confuses me

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Peter Lind
On 6 August 2010 04:10, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where in > one

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson wrote: > Tim Bray, who knows a little bit about XML dialects (tongue in cheek), > appears to default to the single quote as his delimiter of choice: > http://www.tbray.org/ongoing/ Side note, looks like his stuff is auto-generated by something, so

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson wrote: > I would suggest that saying is "the wrong way" is a > rather strong assessment.  Whether you're talking about SGML (the > grandparent), XML (the parent), or XHTML, the use of a single quote is > perfectly valid, and has served a purpose si

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Adam Richardson
On Thu, Aug 5, 2010 at 10:53 PM, Rick Dwyer wrote: > > On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: > > > > > For HTML, -always- use double quotes. > > > > is the right way. > > is the wrong way. > > > > I'd go into more explanation but there simply doesn't need to be one. > I would sugg

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Paul M Foster
On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is writ

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
On Aug 5, 2010, at 10:43 PM, Michael Shadle wrote: > On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer wrote: >> Hi List. >> I've mentioned before that I am both just beginning to learn PHP AND I have >> inherited a number of pages that I'm trying to clean up the w3c validation >> on. >> >> Somethin

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Michael Shadle
On Thu, Aug 5, 2010 at 7:10 PM, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where i

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Josh Kehn
On Aug 5, 2010, at 10:10 PM, Rick Dwyer wrote: > Hi List. > I've mentioned before that I am both just beginning to learn PHP AND I have > inherited a number of pages that I'm trying to clean up the w3c validation on. > > Something that confuses me is how the code on the page is written where in

[PHP] Quotes vs. Single Quote

2010-08-05 Thread Rick Dwyer
Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on. Something that confuses me is how the code on the page is written where in one instance, it follows this: echo " And elsewhere