Re: [PHP] Newbie problem - Slashes
Hi, Maybe mysql_escape_string($string) helps? Greetings, Nookie - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 11:32 PM Subject: Re: [PHP] Newbie problem - Slashes > > Hi John,Phillip, > Thanks for writing. > > > You're fault. :) > Guessed as much. :-) > > I know quotes are used for the beginning and end of a string,but i'm thinking what if a user "accidently" puts in a double quote.maybe as a typo error? > > The part I cannot understand is why is the MySql database's cutting off everything after the escapeing \.? > eg: > When i enter: My pal is Lisa O"neil > and escape it with: (via addslashes) > My pal is Lisa O\"neil > in the database all thats entered is: > My pal is Lisa O\ > > Why is that? > > Please help, > -Kim. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] change variable in file
Hi, I want to write function which change variable in ie. config.php file ... Here is code: and config.php: and it's doesn't work :( ... when I run script, it clear config.php and nothing else ... where is my fault? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] keep textformating ?
Hello Hawk, Monday, July 8, 2002, 3:28:02 PM, you wrote: H> Lets say I have a guestbook, and I want the text the visitors write in it be H> saved in a database(mysql) and when retrieved, if should have the same H> textformating, I guess this is a really basic thing, but I don't know what H> to look for :) H> I've caught \n and ereg*, but I'm not sure that's the thing, help bitte .) nl2br($string); -- Greetings, Nookie mailto:[EMAIL PROTECTED] http://www.shakira-online.net http://www.xtina.pl http://www.jessica.prv.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no
Hello Justin, Thursday, July 11, 2002, 1:35:50 AM, you wrote: JF> Jason, JF> I too have this problem, and got the same response from them. JF> But I believe they weren't stripped out by your mail client, but by the PHP JF> list itself... because I didn't *forward*, I copied and pasted. JF> Either that, or they can't be bothered dealing with the real issue :) JF> I don't know what else to do. JF> Justin French Here's example of headers from my copy of his mails From: Erik Hegreberg <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tuesday, July 9, 2002, 9:40:49 PM Subject: [PHP] ttt ===8<==Original message text=== Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: from pb1.pair.com (pb1.pair.com [216.92.131.4]) by mail.megavita.pl (Postfix) with SMTP id CACCFB8268 for <[EMAIL PROTECTED]>; Tue, 9 Jul 2002 21:54:34 +0200 (CEST) Received: (qmail 76145 invoked by uid 1010); 9 Jul 2002 19:39:51 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: <mailto:[EMAIL PROTECTED]> list-unsubscribe: <mailto:[EMAIL PROTECTED]> list-post: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 76074 invoked from network); 9 Jul 2002 19:39:50 - Message-ID: <025f01c22780$873d3db0$01000a0a@mi6> From: "Erik Hegreberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Tue, 9 Jul 2002 21:40:49 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_025C_01C22791.4A9846F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600. Disposition-Notification-To: "Erik Hegreberg" <[EMAIL PROTECTED]> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600. Subject: [PHP] ttttttt Status: ===8<===End of original message text=== -- Pozdrowienia, Nookie mailto:[EMAIL PROTECTED] http://www.shakira-online.net http://www.xtina.pl http://www.jessica.prv.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IIS5 and PHP4 problems
Hello Peter, Tuesday, July 16, 2002, 12:28:06 PM, you wrote: PS> Hi there! PS> I have a problem with the IIS5. PS> After I have installed PHP4 following the instruction on php.net, everything PS> works fine instead of handling forms. PS> Each variable deliverd by a form (e.g. test.php?id=5) is empty (id=="" is PS> true). PS> Can anybody help?? Check your php.ini -> register_globals ... Try use $HTTP_POST_VARS['id'] or $_POST['id'] -- Pozdrowienia, Nookie mailto:[EMAIL PROTECTED] http://www.shakira-online.net http://www.xtina.pl http://www.jessica.prv.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL results
Hello, I have a question: does anyone know how to divide MySQL results to pages and display on a website in "1 2 3 4" form? Greetings, Simon Kosok http://www.shakira-online.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cookies
Hi. Is there any way to check is it cookies enabled browser? Regards, Szymon Kosok -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send html email
On Sunday 12 May 2002 02:00, Alex Shi wrote: > Hi! > > How can I send a html email with just the build-in function mail()? > Is this required to put some infomation in "header" field? Thanks > in advance! > > Alex mail("[EMAIL PROTECTED]",$subject,$content,"Content-type: text/html"); Greeitngs, Szymon Kosok -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php