On Thu, Aug 27, 2009 at 9:56 AM, David Stoltz wrote:
> I have:
>
> $goalString = "Goals Entered By ".$mymanager."On
> ".$when.":".$mygoal."";
>
> Which outputs in this tag:
>
>
>
> But if there are double or single quotes in any of the $goalString, it
> messes up the output.
>
> I know this i
On Mon, 2005-05-16 at 12:23, Carlos Palomino wrote:
> Hi everyone,
> I have just begun writing PHP web-pages and I have come across an interesting
> issue.
> Whenever I use special characters within my code such as: a "©", the
> character
> displays as a "?".
Because that's not valid HTML... S
Have a look at htmlspecialchars() as well.
If these don't meet your needs, you might have to start building your own
function to extend what htmlspecialchars() and htmlentities() do.
Justin French
on 10/08/02 4:58 AM, Jeb A. Scarbrough (home) ([EMAIL PROTECTED])
wrote:
> Is there a way to hav
On Fri, Aug 09, 2002 at 02:58:26PM -0400, Jeb A. Scarbrough (home) wrote:
>
> a) strip out any non-standard ascii characters (like the TM or
> copyright symbol)
preg_replace() or ereg_replace().
> b) have PHP encode all these symbols.
>
> I know about htmlentities, but it not catch everythi
On Saturday 24 February 2001 07:49, Mitchell Hagerty wrote:
> The special character I'm concerned with at the moment is the back tick
> ` which mysql doesn't like on an insert. I was looking for a way not to
> parse the entire file evertime I inserted or extracted them from the
> database. Its sim
The special character I'm concerned with at the moment is the back tick ` which mysql
doesn't like on an insert. I
was looking for a way not to parse the entire file evertime I inserted or extracted
them from the database. Its
simple enough todo in perl and php just seems like it would burn al
i use a regexp to slash-out single quotes for
inclusion into an SQL query:
// quote a value to make it appropriate for inclusion in an SQL string
function db_quote($value) {
return ereg_replace("'","\\'",$value);
}
> -Original Message-
> From: Mitchell Hagerty [mailto:[EMAIL PROTECTE
If your refering to: ' or " just use:
addslashes($value); to escape special characters.
On Fri, 23 Feb 2001, Mitchell Hagerty wrote:
> Hey All,
>
> What would be a good method for inserting data into a blob field
> that contained special characters using perl then retrieving that
> data
What type of special characters?
--Joe
On Fri, Feb 23, 2001 at 08:54:09PM -0600, Mitchell Hagerty wrote:
> Hey All,
>
> What would be a good method for inserting data into a blob field
> that contained special characters using perl then retrieving that
> data with php?
>
> URI::Escape has work
eh?
check out htmlspecialchars()
(I think that's right, from memory)
it basically lets you fuggeddaboutit.
-a
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
10 matches
Mail list logo