Why doesn't it show?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

eggoz
Forum Commoner
Posts: 43
Joined: Fri Dec 27, 2002 8:51 pm

Post by eggoz »

Thanks for the help. I took your idea and did the opposite. didn't encode anything, and replaced & % ( ) with the correct #number.

Code: Select all

<?php
$decode['to'] = array('%25', '%28', '%29', '%31'); 
$decode['from'] = array('%', '(', ')', '"');


$encoded = str_replace($decode['from'],$decode['to'],$Description);
$Description_encoded = $encoded
?>
All appears to be in working order.
Post Reply