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 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... > > > > $result = my

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 wrote: > 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. > > http://php.net/manual/en

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 wrote: > On 19 May 2010 14:23, Deva wrote: > > Yeah... Done... Got the solution... > > You need to do exit(0); after the header().. > > die() wont w

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 wrote: > On Wed, 2010-05-19 at 17:43 +0530, Deva wrote: > > Hi, > > If I do refresh after submission of a form, records are

[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 thank-you

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 wrote: > I think that "&" should be & because you cant use "&" in xml as > independent alphbet > > On 5/7/10, Dan Joseph wrote: >> On Thu, May 6, 2010 at

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Deva
I think that "&" should be & because you cant use "&" in xml as independent alphbet On 5/7/10, Dan Joseph wrote: > On Thu, May 6, 2010 at 8:02 PM, Brian Dunning wrote: > >> Hey all - >> >> I'm using simplexml-load-string just to validation a string of XML, and >> libxml-get-errors to return any e