Pikachu2000
Staff Alumni-
Posts
11,377 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Pikachu2000
-
Change Form Value To Always Print Capitalized Names?
Pikachu2000 replied to LukeGee's topic in PHP Coding Help
There are more reasons not to do it programatically than there are to do it, IMO. For instance, what happens to 'mcDonald' with that function? -
There has to be a better solution that what you're attempting. What, exactly are you trying to accomplish?
-
Change Form Value To Always Print Capitalized Names?
Pikachu2000 replied to LukeGee's topic in PHP Coding Help
You usually don't want to manipulate user submitted data in that way, for the simple reason that you have no way of knowing if that's what the user wants it to look like. If you insist on doing it, perhaps you overlooked ucfirst? -
It's probably being set just fine when the script is run the first time. From the setcookie manual entry, this probably explains what you're seeing:
-
Extracting keyword information from Google cookie
Pikachu2000 replied to MortimerJazz's topic in PHP Coding Help
Probably doesn't help much, being that this thread is nearly a year old . . . -
In Profile --> Settings --> Notifications there are options on how to be notified, and what notifications to receive. There's also an option to follow every thread you reply in. If you don't want to be notified by default, there should be a "Follow This Topic" button in the upper right of each thread, but I believe you still have to at least choose the notification method in your profile settings.
-
" Does Not Allow Link To Work .. Why ..?
Pikachu2000 replied to spacepoet's topic in PHP Coding Help
You'd just do it the exact same way you should be escaping all user data, with mysql_real_escape_string. EDIT: Assuming you're using MySQL, of course. -
A sincere thanks to everyone! If there's anything I can do to help, please feel free to PM Philip
-
" Does Not Allow Link To Work .. Why ..?
Pikachu2000 replied to spacepoet's topic in PHP Coding Help
It isn't working because your changing the data instead of escaping it. Then when you echo the data the quotes are no longer quotes, they're html entities designed to be rendered and displayed by the browser. -
" Does Not Allow Link To Work .. Why ..?
Pikachu2000 replied to spacepoet's topic in PHP Coding Help
The real question is why would you store html markup in the database? -
I thought you lived here too. You don't?
-
Oh, noice.
-
No, no, no, LOL. I mean from the time Philip asked me on IRC. By the time I was able to CMD-Tab and refresh, it had already happened.
-
Wow. That was fast! Thanks!
-
Used Real Escape String And In Textarea It Gives \\\
Pikachu2000 replied to lovephp's topic in PHP Coding Help
Is magic_quotes_gpc set to on? -
mysqli_connect_error() would be the correct function to use where mysql_error() currently is in the code.
-
3 Days Of Head Scraching And Still Cant Get This?
Pikachu2000 replied to hopbop's topic in PHP Coding Help
I sincerely hope you haven't posted a valid name, address, telephone and social security number on the internet for the entire world to steal. -
How To Output Multidimensional Array , With For Loop ?
Pikachu2000 replied to printJimy's topic in PHP Coding Help
Since you already know foreach() is there for dealing with arrays, if using a for() or while() loop on an array helps you learn how they work, then by all means do it.- 23 replies
-
- multidimensional arrayphp
- for loop
- (and 1 more)
-
How Do You Change The Default Editor From Vi (Centos)?
Pikachu2000 replied to tibberous's topic in Miscellaneous
I don't think it's as much a matter of ease, as a matter of what you're used to. Everyone I know thinks Mac OS is "hard" to use. Being a Linux and Mac user for the last 6 years, I think WinD'ohs is hard to use. EDIT: and really, the more granular the control you need over something becomes, the more complex it becomes to control. -
You have a multidimensional array there. It will help you see what the structure actually if you do this: echo '<pre>'; print_r($testdata); echo '</pre>';
-
You already have a thread open for this same problem. Stop double posting.
-
When I run the code you posted, it does not produce that error.