ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
Re: [PHP-DB] apostrophes everywhere
by Stut other posts by this author
Feb 18 2006 3:28PM messages near this date
[PHP-DB] apostrophes everywhere | Re: [PHP-DB] apostrophes everywhere
Andrew Darrow wrote:
>  Everything get's run except for the INSERT INTO if there is an apostrophe in
>  the value $blog. If I replace the apostrophe with ' it works fine.
>  
>  On my server I'm running PHP 4.4 and mySQL 4.1.16. I design there and
>  publish elsewere. On my server everything works fine all the time, but on
>  the production server I'm running PHP 4.3.11  and MySQL 4.1.12 that's where
>  i'm having problems with the apostrophe.

RTFM: http://php.net/mysql_real_escape_string and 
http://php.net/magic_quotes

-Stut

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Andrew Darrow
Stut
sub
Stut
Julien Bonastre

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved