Re: [PHP] mysql_num_rows()

2011-02-21 Thread Deva
I tried your script locally. Its working for me. On Tue, Feb 22, 2011 at 11:10 AM, Gary gp...@paulgdesigns.com wrote: Can someone tell me why this is not working? I do not get an error message, the results are called and echo'd to screen, the count does not work, I get a 0 for a result...

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Deva
Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote: I feel you should use more of the 4th method here as you are not trying to read the file but the header level (7th layer) information of the HTTP protocol.

[PHP] How to prevent duplicate record insertion after refreshing php page

2010-05-19 Thread Deva
Hi, If I do refresh after submission of a form, records are getting stored multiple times. I have two pages. /submission-form/ and /thank-you/ I was trying header('Location: /thank-you/'); on submission-form page after successful validation and insertion into db. Still if I do refresh on

Re: [PHP] How to prevent duplicate record insertion after refreshing php page

2010-05-19 Thread Deva
Yeah... Done... Got the solution... You need to do exit(0); after the header().. die() wont work... On Wed, May 19, 2010 at 5:42 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2010-05-19 at 17:43 +0530, Deva wrote: Hi, If I do refresh after submission of a form, records

Re: [PHP] How to prevent duplicate record insertion after refreshing php page

2010-05-19 Thread Deva
wtf now its working for die() also.. weird need to figure out what happened... On Wed, May 19, 2010 at 6:00 PM, Peter Lind peter.e.l...@gmail.com wrote: On 19 May 2010 14:23, Deva devendra...@gmail.com wrote: Yeah... Done... Got the solution... You need to do exit(0); after the header

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Deva
I think that should be amp; because you cant use in xml as independent alphbet On 5/7/10, Dan Joseph dmjos...@gmail.com wrote: On Thu, May 6, 2010 at 8:02 PM, Brian Dunning br...@briandunning.comwrote: Hey all - I'm using simplexml-load-string just to validation a string of XML, and

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Deva
- amp; added space because browser is converting it to :) On 5/8/10, Deva devendra...@gmail.com wrote: I think that should be amp; because you cant use in xml as independent alphbet On 5/7/10, Dan Joseph dmjos...@gmail.com wrote: On Thu, May 6, 2010 at 8:02 PM, Brian Dunning br