This topic is locked

Error on Member Name with ' on search

1/10/2008 2:59:22 PM
PHPRunner General questions
J
Jeanette author

I have a project that lists member names, and everything works great, except that when I run the search page, if the member name has a quote in it (like Braum's) I get an error message. I have looked and looked through the forum, and have seen references to escaping the quote with a \, which I have tried, but I'm just not getting it right.
Is this something that needs to be added as a before search event on the events page? This is what I have so far, and it's not working.....
$member=members.member_name;

$values["member"]= str_replace("'","\'",$values["member"]);
I apologise in advance if this is 'basic php'....... but its not so 'basic' to me right now :-)

J
Jane 1/11/2008

Jeanette,
this bug was fixed.

Please download and install latest update of PHPRunner:

http://www.asprunner.com/files/phprunner-setup.exe
Then open and rebuild your project with last version.

If it doesn't help publish your project on Demo Account and send to [email=support@xlinesoft.com]support@xlinesoft.com[/email] a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site