[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql
Subject: Re: mysql: escapeing double quotes in the C API
From: Paul DuBois <paul () snake ! net>
Date: 1998-08-31 21:14:07
[Download RAW message or body]
>hi guys. my docs on the C API seem to be missing a really nice feature that
>the PERL
>API has: the quote method.
>
>for example this:
>$company_id = $dbh->quote($company_id);
>
>well, I am in need of such a function. Does such a function exist? I'm
>running into problems
>with users submitting a text field with double quotation marks in it
>
>If I had some sort of string search and replace in C I could do it that way
>as well.
>I suppose I could write my own that reallocs the string and such but I dont
>want to reinvent the wheel if I dont have to :)
mysql_escape_string(), section 18.4.12 of the manual.
--
Paul DuBois, paul@snake.net
Northern League Chronicles: http://www.snake.net/nl/
Madison Black Wolf: http://www.primate.wisc.edu/people/dubois/blackwolf/
-----------------------------------------------------------
Send a mail to mdomo@tcx.se with
unsubscribe mysql your@subscription.address
in the body of the message to unsubscribe from this list.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic