RE: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Tommy Pham
> -Original Message- > From: Richard West [mailto:p...@cbnisp.com] > Sent: Friday, November 26, 2010 9:40 PM > To: Peter Lind > Cc: Tommy Pham; Tamara Temple; PHP General Mailing List > Subject: Re: [PHP] PHP Add +1 mysql updates by 2? > > I took that into consideration so I added the upda

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Peter Lind
And what difference will that make if the document is requested twice with every browser load? On Nov 27, 2010 6:39 AM, "Richard West" wrote: > I took that into consideration so I added the update at the very end of document... > Still the same, > RD > > > > > On Nov 27, 2010, at 12:31 AM, Peter L

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Richard West
I took that into consideration so I added the update at the very end of document... Still the same, RD On Nov 27, 2010, at 12:31 AM, Peter Lind wrote: > On Saturday, November 27, 2010, Richard West wrote: >> Hey Tommy, >> >> I get the same when seting it to a_downloads=a_downloads+1 >> It s

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Peter Lind
On Saturday, November 27, 2010, Richard West wrote: > Hey Tommy, > > I get the same when seting it to a_downloads=a_downloads+1 > It still increments by 2 > I've never run into this before. > RD > > > On Nov 26, 2010, at 11:45 PM, Tommy Pham wrote: > >>> -Original Message- >>> From: Tamara

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Richard West
Hey Tommy, I get the same when seting it to a_downloads=a_downloads+1 It still increments by 2 I've never run into this before. RD On Nov 26, 2010, at 11:45 PM, Tommy Pham wrote: >> -Original Message- >> From: Tamara Temple [mailto:tamouse.li...@gmail.com] >> Sent: Friday, November 26

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Richard West
No On Nov 26, 2010, at 10:53 PM, Tamara Temple wrote: > > On Nov 26, 2010, at 8:36 PM, Richard West wrote: > >> Hey guys, >> I've never run into this before. >> I have a field in mysql for page views. >> So I pull out value and do +1 to new value - after UPDATE SET it has >> incremented by 2?

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Da Rock
On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),&$matches) Can you ... var_dump(exec($mixer . ' ' . $co

RE: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Tommy Pham
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Friday, November 26, 2010 7:54 PM > To: Richard West > Cc: PHP General Mailing List > Subject: Re: [PHP] PHP Add +1 mysql updates by 2? > > > On Nov 26, 2010, at 8:36 PM, Richard West wrote: > > > Hey guy

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Tamara Temple
On Nov 26, 2010, at 8:36 PM, Richard West wrote: Hey guys, I've never run into this before. I have a field in mysql for page views. So I pull out value and do +1 to new value - after UPDATE SET it has incremented by 2? $val = $row['a_downloads'] ; $new_val = $val+1; mysql_query("UPDATE cb

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rockl...@herveybayaustralia.com.au> wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),& $matches) Can you ... var_dump(exec($mixer . ' ' . $command));

[PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Richard West
Hey guys, I've never run into this before. I have a field in mysql for page views. So I pull out value and do +1 to new value - after UPDATE SET it has incremented by 2? $val = $row['a_downloads'] ; $new_val = $val+1; mysql_query("UPDATE cbn_articles SET a_downloads='$new_val' WHERE a_id = '".

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Da Rock
On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),&$matches) Can you ... var_dump(exec($mixer . ' ' . $command)); I wonder if the output includes a new line which you are not accounting

Re: [PHP] code quest

2010-11-26 Thread Bastien
On 2010-11-26, at 7:33 PM, Adam Richardson wrote: > On Fri, Nov 26, 2010 at 7:03 PM, Kirk Bailey wrote: > >> Hello all, my name is Kirk Bailey, and I am new to php, so please be >> forbearing. I code in python, and am trying to learn this language as our >> new client runs a web business bas

Re: [PHP] code quest

2010-11-26 Thread Adam Richardson
On Fri, Nov 26, 2010 at 7:03 PM, Kirk Bailey wrote: > Hello all, my name is Kirk Bailey, and I am new to php, so please be > forbearing. I code in python, and am trying to learn this language as our > new client runs a web business based in it. > > I need a routine that will return a list of every

[PHP] code quest

2010-11-26 Thread Kirk Bailey
Hello all, my name is Kirk Bailey, and I am new to php, so please be forbearing. I code in python, and am trying to learn this language as our new client runs a web business based in it. I need a routine that will return a list of every directory immediately under the current directory- but no

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 25, 2010, at 6:07 PM, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), & $matches) it looks like you're failing to account for the newline that comes back in a command execution. Add trim() around the exec() call and try again. -- PHP General Mailing Li

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
On 26 November 2010 15:12, Tom Hendrikx wrote: > On 26/11/10 15:54, Richard Quadling wrote: >> On 25 November 2010 21:30, Tom Hendrikx wrote: >>> Hi, >>> >>> I noticed that the mail() function in php 5.3.3 on gentoo linux triggers >>> a warning when used. A simple debug script with the contents:

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: > On 25 November 2010 21:30, Tom Hendrikx wrote: >> Hi, >> >> I noticed that the mail() function in php 5.3.3 on gentoo linux triggers >> a warning when used. A simple debug script with the contents: >> >> > // recipient, subject, body >> mail("s...@examp

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: > On 25 November 2010 21:30, Tom Hendrikx wrote: >> Hi, >> >> I noticed that the mail() function in php 5.3.3 on gentoo linux triggers >> a warning when used. A simple debug script with the contents: >> >> > // recipient, subject, body >> mail("s...@examp

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Richard Quadling
On 26 November 2010 00:07, Da Rock wrote: > preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), &$matches) Can you ... var_dump(exec($mixer . ' ' . $command)); I wonder if the output includes a new line which you are not accounting for in the regex. -- Richard Quadling Twitter : EE

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Richard Quadling
On 25 November 2010 21:30, Tom Hendrikx wrote: > Hi, > > I noticed that the mail() function in php 5.3.3 on gentoo linux triggers > a warning when used. A simple debug script with the contents: > > // recipient, subject, body > mail("s...@example.com", "mail() test", "This is a test"); > ?> > > d

Re: [PHP] Fw: Spoofing user_agent

2010-11-26 Thread Richard Quadling
> On 25 November 2010 15:38, Ron Piggott wrote: >> >> Is "User Agent" suppose to have a hyphen  "-"  ?   Ron > http://en.wikipedia.org/wiki/User_agent "... the identity is > transmitted via the User-Agent request header, ... " http://tools.ietf.org/html/rfc1945#section-10.15 User-Agent

Re: [PHP] Fw: Spoofing user_agent

2010-11-26 Thread Richard Quadling
Please don't top post. On 25 November 2010 15:38, Ron Piggott wrote: > > Is "User Agent" suppose to have a hyphen  "-"  ?   Ron > > > > The Verse of the Day > “Encouragement from God’s Word” > http://www.TheVerseOfTheDay.info > -Original Message- From: Richard Quadling > Sent: Thursday, N

Re: [PHP] MySQL database export to Excel

2010-11-26 Thread Steve Staples
On Fri, 2010-11-26 at 15:21 +0200, Sotiris Katsaniotis wrote: > Greetings fellow PHP developers! > > I am looking of a relatively simple way to export a whole database into > an Excel file. I have several methods to export tables to Excel files > but unfortunately I have failed to export a whole

[PHP] MySQL database export to Excel

2010-11-26 Thread Sotiris Katsaniotis
Greetings fellow PHP developers! I am looking of a relatively simple way to export a whole database into an Excel file. I have several methods to export tables to Excel files but unfortunately I have failed to export a whole database! Can someone be so kind to point me in the right direction?

[PHP] PHP-driven alternative to Crystal Report

2010-11-26 Thread AmirBehzad Eslami
Dear List, I'm looking for an open-source database reporting tool, which is written in PHP. Do you know of any php-driven alternative to Crystal Report? What do you recommend? Please let me know. Thank you very much. -behzad