Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit php script corrupting database row content integrity

Status
Not open for further replies.

JamesCliff

Programmer
Feb 16, 2005
106
GB
Ive got a php edit script which allows me to alter the contents of a table row. Within this table row i have <script> code. This script code was fine and worked before i created the php edit script. Now every time i click update on the edit php script the \ (backslashes) within the <script> code multiply. So now my script code within the table row is corrupt and dosnt work because there are so many backslashes instead of just one.

Is there a function i can add to my php edit script which will make sure when i enter code into the edit script it will not change what so every?

Has anyone come accross this before?

Thanks

Jim
 
Have a look at the stripslashes() function. Use it before writing out your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top