Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Php Not Doing Sum Operation On Sql Query Variables With Number.
Jessica replied to gdeliana's topic in PHP Coding Help
What are the values of $i?- 10 replies
-
Mysql Php If Column Is Not Null Update Next Column
Jessica replied to Simber33's topic in MySQL Help
Did you research what normalization is? -
Mysql Php If Column Is Not Null Update Next Column
Jessica replied to Simber33's topic in MySQL Help
Nth...use a user id, not a username. See: normalization. -
Well, that's not how you use echo. That's clearly not valid PHP. You need to echo the entire URL you are trying to load, and do it on it's own line.
-
http://php.net/manual/en/function.uniqid.php
-
Try changing the order of your arrays.
-
Then your syntax is wrong. You didn't post your new code. We can't see your screen. We can't see your code. We can't see your errors. You have a basic syntax error, look at the code you added. Are you using an IDE with syntax highlighting? It would be obvious.
-
No, I'm not going to your blog, especially if you won't even help us help you. You get an error? Great!!! WHAT WAS IT?
-
First, echo that string, then go visit the url. What do you see?
-
Go to the administration then. Don't be a victim. The manual is a good resource. If you don't understand why you have to do function validate($string_to_validate, $type_of_validation){ instead of function validate(), read the manual section on functions.
-
I personally would use the strings and tell the teacher than since 1 and 2 are meaningless, you used arguments that made sense. I would also tell him if he's not interested in teaching, you'll continue to follow advice given to you by seasoned professionals. But I'm a bit of a hardass on bad teachers. I had too many of them. And yes, either 1,2 or 'email','password' is what will be saved as $type_of_validation.
-
So, you have the right idea in sending it a second argument. But 1. It should make sense (not 1 or 2 but 'email' or 'password'), and 2. if(1) will always == true, and if(2) will always == true. You need to capture the arguments you're passing to your function. function validate($string_to_validate, $type_of_validation){ switch($type_of_validation){ case 'email': .... etc your code
-
Well...uhm...then....
-
0.2 grater than zero? ;D
-
OMG is that a "touche" smiley? I love it.
-
It will still return an array...
-
Seriously.
-
Look into templating engines like Smarty.
-
It looks like it returns an array, which you can't echo anyway.
-
What isn't it doing that you expect it to do? It slides fine. What's the problem?
- 2 replies
-
- nivo slider
- jquery
-
(and 2 more)
Tagged with:
-
try using break;
-
So the PM you sent out I'm guessing en masse, you forgot that already? No one is "having a go" at you. Grow up.
-
Did you actually read what I wrote?
-
Where did you get the idea that E_ALL does not include E_DEPRECATED? As I said, before 5.4 E_ALL did not include E_STRICT - that's it.
-
If you're using 5.4+ you use E_ALL. It's not "better" to use one over the other, the -1 is for <5.4 when E_STRICT was not included in E_ALL.