-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
what ever happened to [ php ] [ /php ] ?
.josh replied to dezkit's topic in PHPFreaks.com Website Feedback
pfft. I'd settle for even that. My main beef (as far as this is concerned) is people being incapable of using tags at all. -
that's because php is a server-side language. Everything is parsed on the server and then all the results are sent to the browser. You need to use javascript for something real-time like that.
-
$_SERVER['REMOTE_ADDR'] will give you an IP address though that's very unreliable, as it can easily be spoofed or hidden.
-
haha like...me?
-
I think by radio button you mean checkbox for making multiple selections? in your form element you would do for example: <input type = 'checkbox' name = 'friendship_id[]'>Andy <input type = 'checkbox' name = 'friendship_id[]'>Beth <input type = 'checkbox' name = 'friendship_id[]'>Sue and then in your processing script, you would access it like a 2d array. Assuming you checked all 3, an example of use would be: echo $_POST['friendship_id'][0]; // echo Andy echo $_POST['friendship_id'][1]; // echo Beth echo $_POST['friendship_id'][2]; // echo Sue
-
[SOLVED] Tell variable that it is an integer
.josh replied to nightkarnation's topic in PHP Coding Help
Force type casting: $weeklyRate = (int) $_POST['weeklyRate']; Although...I'm pretty sure that sql should recognize it as an int as is...not really sure why it wouldn't...did you echo it out first to see that it's got what you're expecting? Maybe it's got a \n or \r or \n\r hiding on there, and you need to trim it instead? -
The main concern with a "karma" system was that people could abuse it. They might give good karma to someone's post (even their own) simply because they like the person. Or the same with bad karma. Despite that concern, we actually did give it a brief run, and sure enough, people were doing exactly that. We felt that because of this, other people might see high(er) karma'd people and think they are representative of the (ideals of the) community, when in fact they are not. We felt that the best way to trust people was to just hand pick them. We do recognize even that is not a guarantee, but we feel that so far it's the best method. Alternate suggestions are always welcome.
-
well, they pay you X amount of money (depending on what "insurance package" you buy). But I kind of have to assume that since they don't really want to be handing out money, they probably will handle it more carefully, because if you don't have insurance, it's not like they lose anything.
-
First off, you would access each of those variables the same way you accessed variable1: with $_GET['variablenamehere']. Having said that, what exactly are you trying to do? Have a separate webpage for each possible combination of variable1|track|ref ? That's not exactly efficient, and that also kind of defeats the point of sending multiple variables through a url. Ideally you would have one single page dynamically create the relevant content, rather than having all those variations.
-
Yeah and what's even funnier is how they have the balls to offer "insurance" for in case shit like that happens. I'm just like wtf... shouldn't that sort of thing be like, you know, standard?
-
and I bet they charged you for next day anyway, didn't they.
-
Well then maybe you should have said forum instead of community. But to me that kind of restricts the definition of a community. The main site is part of this 'community;' people can post tutorials and news and blogs etc.. and comment on them etc.. imo that's very similar to what a forum can do. The main site and the forum make up the community.
-
The main site here was a group effort, built from the ground up. Dunno if you'd count that as a "community project" or not.
-
well i told you what you need to do in my previous post. Would you like me to write your code for you?
-
Christians won't be changing their argument to say that; they already believe it: p.s. - I think this thread is coming dangerously close to turning into a religion bashing thread...
-
You need to post what's in generate_pagination for us to give you any kind of specific help. But overall, you just need to find the loop that generates the numbers (I'm assuming it's in generate_pagination), and alter it. Instead of just doing a generic for ($x = 1;$x < $pages; $x++) { ... } you could do several things. One thing you could do is do two separate loops; one for the 1,2,3 and another for the 8,9,10. Or you could make a condition inside your loop to only display the numbers you want, like for ($x = 1;$x < $pages; $x++) { if (($x < 4) && ($x > ($pages - 4))) { // display page numbers here } }
-
People like you is what gets things taken away. GTFO.
-
yeah...when I moved down to reg member my inbox suddenly went to like 1500% full lol.
-
That sorta implies that they didn't expect things to go smoothly...
-
You mock it but that that shit really works for employee morale.
-
Yeah... they just tested sending particles one direction. Later they are going to test sending them the other direction. Still later they are going to test sending them both directions at once. Even more later after that they are going to test colliding them, except at lower speeds. And THEN they will finally fire it up to those "omg black holes the world is going to end" speeds and collisions. Expect to see that happen sometime next summer-fall.
-
Okay well I think what I really meant to say was this: just because language x does some particular thing better than language y, doesn't mean you need to go learn x, if you already know language y. I'm personally not interested in mixing and matching a hundred different languages to get the job done, simply because the "best" way is spread out like that. Is that the case here? We don't really know.
-
I don't necessarily think it's fair to say something like that. That just boils down to the "Which is the better language, x or y?" argument.
-
umm well I'm not going to combine your two scripts for you...that's the sort of thing people get paid to do...