Jump to content

Html Tag in Php Variable


drkscrt57

Recommended Posts


I'm trying to get php to search a file for the closing row tags of an html table, I'm getting snagged when I try to save the tag as a variable:
$unique_end = "</TR>";

However it seems that the '/' is conflicting the string somehow. But when I add an escape command such as single quotes so that the line looks like this: $unique_end = "{<'/'TR>}" the single quotes get saved into the string. Can anybody help me get around the forward slash without including extra characters?

Thanks
Link to comment
Share on other sites

When you escape a string in mysql, for instance when you have the / symbolw hich is used to escape the character, if you want to escape the escape it's // then it said something about escaping the escape to the escape it's like //// to get that to escape right, by what i have read so try // if it doesn't work try ////
Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.