Closed

487156 Apostrophe issues

This project is now closed with a project budget of N/A.

Get free quotes for a project like this
Employer working
Project Budget
N/A
Project Description

Hello all,

I'm having problems with two small scripts, one is using FILE_EXISTS to check if a [url removed, login to view] image is the folder, if is there is uses the [url removed, login to view] in question, else it uses a different image file like [url removed, login to view], well, it works fine with all files except with the .jpg files with apostrophe in it, it just won't work, I tried stripslashes and even mysql_real_escape_string but nothing seem to make any different and i know the .jpg file is there, is just that they have apostrophes on them.

The other script I use it for voting, every time is clicked it sums a #1 value to the vote_data field, it works great too, except again from those titles that have apostrophe in them, again I tried stripslashes and even mysql_real_escape_string but nothing seem to make any different.

I'm attaching a sample of the two small scripts.

Thank.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online