-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
alternate pattern: $content = preg_replace('~</?a[^>]*>~i', '', $content);
-
You should post that in a blog
-
Dunno who took mod action against your post but I woulda done the same thing. That's spam, regardless of how much $$ you stand to benefit. Probably the only reason why you weren't banned instead of warned was because you have a few posts under your belt. From your OP: You say there are other links being posted by other people that aren't being deleted, which makes you feel like you are being singled out? Can you please provide some examples? It is possible they have been overlooked. It is also possible we don't consider them spam, but we cannot address such things when you don't back up your claims with examples and reasons why you think they are spam.
-
haha yeah i just remembered that, was fixin' to post that just now till I saw your post
-
$url = "http://www.somesite.com/somepage.php?x=123&y=456&z=789"; echo parse_url($url, PHP_URL_QUERY);
-
care to explain what it is you are trying to do?
-
Your OP code suggests you already know how to do that... your search query returns the results. You loop through the results, echoing out links, with the variable instead of hardcoded names...
-
WUT SORCERY IS TAHT??? BLASPHEMEEZ, YOU DEFIES THE INTERNETZ!!!?!?!?ONE!!?!?!
-
oh sorry, forgot about the digits.
-
Okay I'm confused. This is how I understand the situation to be: You have a search engine script. Someone enters in something in the search field, and the search engine spits out a list of link-ified names. You then want to click on one of those names, and it pulls up the rest of the info about them. You said that each username in the database is unique. Therefore, clicking on this: <a href='profile-view.php?username=tom'>tom</a> And then in profile-view.php, having this: <?php $username=$_GET['username']; $result=mysql_query("SELECT * FROM musicians WHERE username='$username'"); while($row = mysql_fetch_array($result)) { echo $row['username'] ; echo $row['firstname'] "; echo $row['lastname']; echo $row['email'] "; echo $row['age'] ; echo $row['instrument']; echo $row['location'] "; echo$row['postcode'] ; echo $row['genre']; } ?> Since you said there is only 1 row in the database where username = 'tom', that will echo out tom's information. That is what you are wanting to do, right? So what is the problem? What part of that scenario is not happening?
-
He knowingly and willingly disregarded the rules (how do we know? because he was kind enough to say so in one of his posts). We simply enforced them. He decided to call us shity for it, and make out like it was some common occurrence with him, when in fact, there's only 1 thread of his that got deleted. He even told one of the staff alumni to get out of his thread for no apparent reason. Clearly he is not being respectful to the community rules, or to us. We looked at his posts, including the ones in this thread, and judged him to be an asshole. While we seem to share the same philosophy about dealing with assholes, apparently you don't interpret his actions in the same way, and that's fine. And I understand the apparent "air of superiority" around here. But the reality is that most of us are "superior" in the sense that we are more knowledgeable, etc... This is a help board. People come here for help. People ask for help when they don't know. Does that mean it's okay to act superior? Well that depends on who you ask. I personally would say no, but I would also point out that if you want to be waited on hand and foot, catered to, ego-stroked, etc.. go to a pay-for-service site. And there is a lot of "inside jokes" going on, and it is indeed real easy to take things out of context when you haven't been around for very long. This site is more than a question:answer site. I also think a lot of people have a tendency of thinking we think ourselves superior when we don't treat them as if they are somehow unique, special, first one to ask a question, somehow important that we should have to drop what we are doing and make them #1 priority, etc... in other words, people have a habit of claiming we are acting superior, when in fact, it is just us not treating them as if they are. We do not condone "You stupid noob, this what's wrong/you should be doing, etc..." posts. But we do not take kindly to people who come here and are lazy about shit. We do not expect people to be masters of programming, but we expect a certain level of common sense and willingness and effort. If someone makes a post asking (or demanding) help, and they don't bother to make an effort to post details, explain their situation correctly, etc... then they are not going to get a positive response. This isn't "noobness," this is laziness and lack of effort on their end.
-
someString = someString.replace(/[^-a-z ]/gi,'');
-
As long as you were only doing it to shamelessly raise your post count
-
Having to explain jokes makes pandas sad.
-
No, if you're an idiot, we'll still try to help, though we'll probably laugh at you and/or bang our heads against the wall in frustration, behind your back. The correct phrase here would be: "You're an asshole, go away." And it is nice not to have to cater to assholes. That's one of the benefits of being a community made up of volunteers who are here to fuck around and help out when they can, but mostly fuck around. This isn't a business, and we don't have a vested interest in some "The customer is always right" mantra.
-
yeah...no. I can't help but wonder how many "special sauce" burgers you've been served. Probably a lot.
-
Yes we can change the word filters. No, I did not.
-
you know what they say...imitation is the highest form of flattery
-
okay, on profile-view.php show what you're trying to do. You said "the $username variable'. Are you trying to use $username or $_GET['username']? Show your code, we can't help if we can't see.
-
string.replace(/[a-z]{1,}([^.a-z])/gi, 'invalid$1');
-
only thing I see "wrong" with that code is you have spaces between your variable and value in your href. should be profile-view.php?username=$username and on profile-view.php that value will be in $_GET['username']
-
because your server is already setup to resolve domain.com to www.domain.com
-
In all seriousness though, what's with the outdated pic? What is this, the 1800's? We've totally updated:
-
@OP: HAHA FAIL (sorry, had to rub it in) What is? I can't see the pattern. when you compare one string to another like that, php converts both strings to numbers.
-
Do you like our customized word filter?