[PHP] search is not case insensitive

2010-10-30 Thread Dr Michael Daly
Hi Using a php search form produces a nil return on any information that is capitalised within a mysql database; retrieval is fine for non-capitalised data. Could someone tweak this please? The relevant code I think is as follows: // Description is a BLOB in MySQL... we need to UPPER the blob //va

Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger
I tried that, but I'm getting the syntax error that says "unexpected T_IF". Probably because I'm trying to process this information directly in an email rather letting a mysql database handle the data, which I find harder to set up when writing a script from scratch than it would be to code a

[PHP] include html

2010-10-30 Thread Karl DeSaulniers
Hello, I am looking for a solution to inject some dynamic html into an iframe and rework the css from the results. Is there a way to do this in PHP? I am not talking about just using the src attribute of the iframe either. Basically, I want to call on a web page, grab the html code, replace

Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Bastien
On 2010-10-30, at 10:28 PM, wrote: > > > > > If check it will submit the value of 'on' > > So > > If($_POST['test'] == "on') > { > Do this > }else{ > Do this > } > > > Richard L. Buskirk > > > -Original Message- > From: Ben Brentlinger [mailto:b...@benbrent.com] > Sent: Satu

RE: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread admin
If check it will submit the value of 'on' So If($_POST['test'] == "on') { Do this }else{ Do this } Richard L. Buskirk -Original Message- From: Ben Brentlinger [mailto:b...@benbrent.com] Sent: Saturday, October 30, 2010 10:05 PM To: php-general@lists.php.net Subject: [PHP] questi

Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Adam Richardson
On Sat, Oct 30, 2010 at 10:05 PM, Ben Brentlinger wrote: > hello, > > I'd like to know the proper code to use in a php script that processes a > form with a checkbox in order to send one email if the checkbox has been > checked and another email if the checkbox hasn't.  I tried if($check == > true

[PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger
hello, I'd like to know the proper code to use in a php script that processes a form with a checkbox in order to send one email if the checkbox has been checked and another email if the checkbox hasn't. I tried if($check == true) and I tried putting the word "true" in double quotes, and both

Re: [PHP] Watermark with GD

2010-10-30 Thread Tamara Temple
On Oct 30, 2010, at 9:31 AM, Gary wrote: "tedd" wrote in message news:p06240800c8f1d19b9...@[192.168.1.2]... At 3:05 PM -0400 10/29/10, Gary wrote: I am trying to get the watermark to work, however I am having a problem in that the image is being called from a database (image sits in imag

Re: [PHP] Watermark with GD

2010-10-30 Thread Ashley Sheridan
On Sat, 2010-10-30 at 11:50 -0400, Gary wrote: > "tedd" wrote in message > news:p06240804c8f1eaf38...@[192.168.1.2]... > > At 10:31 AM -0400 10/30/10, Gary wrote: > >> > >>I was under the impression that the image is stored in a folder called > >>images, in fact the images file do go in, however

Re: [PHP] Watermark with GD

2010-10-30 Thread Gary
"tedd" wrote in message news:p06240804c8f1eaf38...@[192.168.1.2]... > At 10:31 AM -0400 10/30/10, Gary wrote: >> >>I was under the impression that the image is stored in a folder called >>images, in fact the images file do go in, however I have the DB set up for >>longblob, averaging about 20kb

Re: [PHP] Watermark with GD

2010-10-30 Thread tedd
At 10:31 AM -0400 10/30/10, Gary wrote: I was under the impression that the image is stored in a folder called images, in fact the images file do go in, however I have the DB set up for longblob, averaging about 20kb each, so now I am unsure. I exported the sql so perhaps you can tell me. Gar

Re: [PHP] Watermark with GD

2010-10-30 Thread Gary
"Tamara Temple" wrote in message news:7f666311-4bc8-4064-8c70-4f2597e7b...@gmail.com... > On Oct 29, 2010, at 2:44 PM, Gary wrote: >> "Adam Richardson" wrote in message >> news:aanlkti=kenxt7yewrztcm4+hyifrlqhozxse7ufmq...@mail.gmail.com... >> On Fri, Oct 29, 2010 at 3:05 PM, Gary wrote: >>> I

Re: [PHP] Watermark with GD

2010-10-30 Thread Gary
"tedd" wrote in message news:p06240800c8f1d19b9...@[192.168.1.2]... > At 3:05 PM -0400 10/29/10, Gary wrote: >>I am trying to get the watermark to work, however I am having a problem in >>that the image is being called from a database (image sits in images >>file). >> >>The script in question i

[PHP] a loop constructing the URLs and make PHP to fetch up to 100 pages [ a seven liner]

2010-10-30 Thread jobst müller
dear list - good Morning! i want to parse the site - and get the results out of it: http://www.educa.ch/dyn/79363.asp?action=search therefore i need to loop over the line 2 - don ´ i!? http://www.educa.ch/dyn/79363.asp?action=search'); $regex = '/Page 1 of (.+?) results/'; preg_match($rege

Re: [PHP] Watermark with GD

2010-10-30 Thread tedd
At 3:05 PM -0400 10/29/10, Gary wrote: I am trying to get the watermark to work, however I am having a problem in that the image is being called from a database (image sits in images file). The script in question is this $image = imagecreatefromjpeg($_GET['src']); However it produces an error