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

2010-11-27 Thread Richard West
PS: PEBKAC I figure :) On Nov 27, 2010, at 6:49 AM, Ashley Sheridan wrote: > On Fri, 2010-11-26 at 22:29 -0800, Tommy Pham wrote: > >>> -Original Message- >>> From: Richard West [mailto:p...@cbnisp.com] >>> Sent: Friday, November 26, 2010 9:40 PM >

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

2010-11-27 Thread Richard West
First let me say thanks to everyone who replied! Ashley, I got it fixed but I have not a clue what did it :) RD On Nov 27, 2010, at 6:49 AM, Ashley Sheridan wrote: > On Fri, 2010-11-26 at 22:29 -0800, Tommy Pham wrote: >> >> > -Original Message- >> > F

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_download

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

2010-11-26 Thread Richard West
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 guys, >>> I've n

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

[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] MySQL Query Help

2010-11-20 Thread Richard West
I'm going to jump in and throw in my 2 cents... Have you used dreamweaver? I would suggest Dreamweaver to any new programmer beginning php/mysql. It helped me out tremendously in the beginning. I'm not an advanced programmer with hand coding classes yet, but I can get any job completed for client

Re: [PHP] Secure PHP Code

2010-11-18 Thread Richard West
Be sure to compile with hardened suhosin patch... RD On Nov 18, 2010, at 12:12 PM, Kaushal Shriyan wrote: > Hi, > > Can the php source code be secured ? > > Thanks > > Kaushal > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --

[PHP] mod rewrite - DMXzone's PHP Pagination

2010-11-16 Thread Richard West
Hello Guys, Gals, I've been working on a project of mine creating a custom little cms. I've managed to go by tutorials and reference material from the php site to get as far as I have. I've got search engine friendly links working with mod rewrite using mysql entry of page alias and my code is l