Re: [PHP] date conversion/extraction issues

2012-05-03 Thread Terry Ally (Gmail)
Haluk, After you retrieve the date from the database you still have to convert it from a string to time and then to a date. Try: Terry On 2 May 2012 22:36, Haluk Karamete wrote: > This is my code and the output is right after that... > > $PDate = $row['PDate']; > //row is tapping into ms-sq

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread Terry Ally (Gmail)
Tom, Here is how you would paginate in PHP. // // Number of records to show per page: $display = 4; // Determine how many records there are. if (isset($_GET['np'])) { $num_pages = $_GET['np']; } else { $query = "SELECT * FROM mytable"; $query_result = mysql

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread Lester Caine
Terry Ally (Gmail) wrote: Here is how you would paginate in PHP. Terry - Tom is not trying to create this in PHP, but read existing ASP pages. Tom - I don't think that it's simply a matter of the ASP code here, but rather how they have constructed the set of information they are sending back.

[PHP] Why might fclose() block?

2012-05-03 Thread Andy Theuninck
I'm currently seeing this in 5.3.10, although it's an intermittent problem I've seen earlier versions too. Occasionally I get a "maximum execution time" error when calling fclose() on a parallel port file descriptor. Code looks like this: $fp = fopen('/dev/lp0','w'); if ($fp){ fwrite($fp,$LongS

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-03 Thread EPA WC
Thanks Lester. On Thu, May 3, 2012 at 3:49 AM, Lester Caine wrote: > Terry Ally (Gmail) wrote: >> >> Here is how you would paginate in PHP. > > > Terry - Tom is not trying to create this in PHP, but read existing ASP > pages. > > Tom - I don't think that it's simply a matter of the ASP code here,

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-03 Thread Gerardo Benitez
Do you know if the mailto script allow set headers? Probably you must set a html header, something like this $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Regards, Gerardo. On Tue, May 1, 2012 at 5:14 PM, Marco Behnke wrote: > > > Am 29.04.2012 22:31, schrieb Terry Ally

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-03 Thread Terry Ally (Gmail)
Hi all, This question is now closed. There is nothing wrong with my script. It was an error by Google when they switched over to the new-look email and have since rectified the issue and all is back to normal. Thanks to all who have responded. Terry On 3 May 2012 21:05, Gerardo Benitez wro

Re: [PHP] PHP & Database Problems -- Code Snippets

2012-05-03 Thread Ethan Rosenberg
At 06:47 PM 5/2/2012, Matijn Woudt wrote: On Wed, May 2, 2012 at 11:43 PM, Ethan Rosenberg wrote: > Dear list - > > Sorry for the attachment. Â Here are code snippets --- Ethan, I don't want to sound rude, but it appears to me you don't have any understanding of what you're doing. It might

[PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
Hi, I've spent hours researching this with no luck. I have a PDF with a form field that I want to populate and output the PDF. Can someone point me in the right direction? Can FPDF do this natively, or I need something else? My host doesn't have PDFLib installed, so that's not an option. Than

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 9:08 PM, "David OBrien" wrote: > > > On May 3, 2012 8:53 PM, "Dan Joseph" wrote: > > > > Hi, > > > > I've spent hours researching this with no luck. I have a PDF with a form > > field that I want to populate and output the PDF. Can someone point me in > > the right direction? Ca

Re: [PHP] PDF Form Field

2012-05-03 Thread David OBrien
On May 3, 2012 8:53 PM, "Dan Joseph" wrote: > > Hi, > > I've spent hours researching this with no luck. I have a PDF with a form > field that I want to populate and output the PDF. Can someone point me in > the right direction? Can FPDF do this natively, or I need something else? > My host doe

Re: [PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
On Thu, May 3, 2012 at 9:13 PM, David OBrien wrote: > I just found fpdfi using Google. It looks like what you need > Wow, you said the key phrase in your last e-mail, 'text on top'. I didn't think of that. fpdi/fpdf does that like a charm, thanks! -- -Dan Joseph http://www.danjoseph.me

[PHP] function

2012-05-03 Thread Ron Piggott
I need to access a FUNCTION I programmed within a different FUNCTION. Are these able to be passed like a variable? Or are they able to become like a $_SESSION variable in nature? How am I able to do this? I am essentially programming: === function name( $flag1, $flag2 ) { # some PHP echo

Re: [PHP] function

2012-05-03 Thread Dan Joseph
On Thu, May 3, 2012 at 10:12 PM, Ron Piggott wrote: > I need to access a FUNCTION I programmed within a different FUNCTION. Are > these able to be passed like a variable? Or are they able to become like a > $_SESSION variable in nature? How am I able to do this? > > I am essentially programmin

Re: [PHP] function

2012-05-03 Thread Simon Schick
On Fri, May 4, 2012 at 4:29 AM, Dan Joseph wrote: > > Are these inside classes or anything?  If they're just functions, they > should work fine together, example of 2 working functions together: > > > hellotwo(); > > function helloone() > { >        echo "hi 1"; > } > > function hellotwo() > { >