PHP - Moved: Help!! Im So Frustrated With This Code!!
This topic has been moved to JavaScript Help.
http://www.phpfreaks.com/forums/index.php?topic=334389.0 Similar TutorialsWhat I want to do should be very simple, but I've stared at code all day and can't grasp it. I want to replace the "&" character, if it exists, with the "&" string. What I have is: Code: [Select] $name = $RESULT['ACCOUNT_NAME']; $cleaned = str_replace('&','& ', $name); echo $cleaned; It doesn't crash or anything, but it doesn't work. I have several ampersand (&) characters in my output that aren't getting replaced. Any help is appreciated. So I started learning PHP a few days ago and I sort of dived right in trying to make things, this was my first program (a simple BMI calculator) http://pastebin.com/SHfA4pt5 Okay but now I wanted to make hangman, and I'm just...so lost, like, I don't even know how to go about it. Here is the code I have so far (some of it commented out because it was just "ideas" I had). Here is what I have so far: http://pastebin.com/FyQPmR8U So can somebody give me some direction? Is there anything I wrote that is REALLY dumb and unnecessary? Basically I'm trying to find a way to: - log the guesses (how can I do this if I don't have an array, or nothing to put the values in...do I need to duplicate anything?) - check to see if a guess has already been made - replace the underscores with the letter corresponding to that position. and hell I don't even know what else, just trying to get it to work This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=349890.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=351710.0 This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=334386.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=352862.0 This topic has been moved to Beta Test Your Stuff!. http://www.phpfreaks.com/forums/index.php?topic=309601.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=355529.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=317538.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=323161.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=322196.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=323503.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=345912.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=354376.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=358229.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=321176.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=330152.0 This topic has been rewritten to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=356324.0 (have I used that one before? I need to write these down somewhere) This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=306039.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=357903.0 |