-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
Im able to make a thread to hire someone?
.josh replied to mudi's topic in PHPFreaks.com Website Feedback
Freelance Forum -
Well, most of us just watched the webcast. A few of us happened to be in the area though.
-
Hey now, he could have been really nice, but thought the computers were evil. Maybe they were sentient and wanted to take over the world and already infected him with some kind of new biosoftware virus so he decided to take them down with him, thus saving the world. Cuz you know, he's really nice like that. R.I.P.
-
Well since you guys obviously haven't gotten your secret decoder rings in the mail yet.... Abet Imar Maakin Tisupp I bet I'm Making This up And while Kabul (with one 'l') is indeed a city in Afghanistan, Shitalabad is not (there is, however, a Jalalabad). So this too, is obviously KaBULL SHITalabad.
-
That's because in sql you use = not == for comparison. And also, dude, you said you only wanted those 3 pages but in your script you have even more! If you are wanting to return all index.php?page=xxxx's at the very least, it would be better to have one LIKE that does this: 'http://www.runningprofiles.com/members/index.php?page=%'
-
It depends on what your system is/does. Hooks can be any number of things. It can be a list of variables that someone can use to get stats for other places or mix and match them for their own features (like, users online, total users, etc...). It can be for instance, available functions that will allow you to add a new option to a list. Allowing certain variables to be changed (aesthetically or whatever). In short, it's more or less like turning your system into a CMS. But again, it really depends on what your system is/does, as to what's the best way of approaching that. I believe this is where object oriented programming really shines; you get to abstract certain things away and create interfaces and stuff for other things to "plugin" to them.
-
We know very little about his family. However, I personally talked to him over skype on several occasions. His name was Abet Imar Maakin Tisupp (there's squiggly lines on some of those letters but my keyboard doesn't do that sort of thing). He came to America from a small village between Kabull and Shitalabad, Afghanistan, shortly after that whole "liberation" from Tali ban incident, circa 9/11. He never really talked about his family, but he did have a tone of sadness in his voice when mentioning his home country, as if his village no longer exists, or something. IDK, I didn't really try to push him on the subject; not really my business. He did have a habit of randomly shouting in whatever Arabic dialog he natively spoke. If I didn't know any better, I'd say he had some sort of tourette syndrome. But it was always accompanied by loud banging noises like he was kicking things or something, so I dunno... coulda just been frustrated with his job or his lot in life or something.
-
google ajax dropdown menus.
-
That indentation is okay. There are different "styles" people like to do. I was referring to you putting all your code on one line.
-
aside from your horrible habit of not indenting, your code should have worked fine, which means your form is not sending the value to your script. Post your form.
-
google captcha tutorials it's the same principle
-
Okay well then it's because you forgot the .com on the other two.
-
[SOLVED] Quick question about database connection
.josh replied to adamjones's topic in PHP Coding Help
go down to database section click on remote mysql and fill in the blank -
dunno what your intentions are, but it would be a lot easier to just do : foreach($_GET as $key => $val) { echo "$key : $val <br/>"; } Though you should definitely sanitize your vars no matter what (your method or mine or any).
-
[SOLVED] Quick question about database connection
.josh replied to adamjones's topic in PHP Coding Help
the target host needs to be set to allow outside connections, as well. You have to specify the allowed host's IP through cpanel or on command line or wherever. -
That's because you forgot the .com on the other urls. Also, are you wanting to record only those 3 pages, or any page= ? Or anywhere on your site? because depending on the answer to those questions, you can reduce that down to one LIKE or even take them all out and just use the last condition (the timestamp)
-
WHERE file LIKE WHERE to WHERE
-
ermm...either you misunderstand me or else I misunderstand you. Okay for example, if I were to click on the following link: http://www.somesite.com/index.php?page=blah Inside index.php I could then do this: echo $_GET['page']; and it would echo 'blah'. Variables passed through the url are accessed through the $_GET array. You are already making use of the $_GET array in your script, based on what you said in your OP. So I don't really understand why I'm explaining this to you...unless that isn't your script and you're tryin' to mess around with it.
-
Maybe he only has trouble understanding Indians. Or more likely, he was just giving an example. I don't think he was being rude at all. People are way too sensitive these days. Anyways, wrong forum. Moved.
-
Why not make a column in your user's table called currentlyAt or something and whenever a user loads a page, it takes the $_GET['page'] var and puts that value in their row and then base your query to show where users are, off currentlyAt?
-
Change data in a row in database every 2 hours.
.josh replied to justinede's topic in PHP Coding Help
well you wanted pointing in a direction to start. I think you should start with writing the script so that you have something to actually run every 2 hours. Once you have your script, google how to run a cron job. -
Change data in a row in database every 2 hours.
.josh replied to justinede's topic in PHP Coding Help
Sure, start off with some basic database handling. -
Need Help duplicating code, without duplicating results
.josh replied to TechMistress's topic in PHP Coding Help
die("Goodbye, cruel world!"); -
Change data in a row in database every 2 hours.
.josh replied to justinede's topic in PHP Coding Help
Well it sounds like you have a solid battle plan. Break it down and do it step by step. Basic database handling, logging time last logged in, run a cron job on the script to execute every 2 hours. So hop to it sir. If you get stuck on some coding let us know, we'll try to help you out. If you are wanting someone to write it for you, make a post in the freelance forum making an offer. -
You have a while loop that assigns results to a var and you have for loop that displays it. While you will need to assign the results to a var if you want to use it somewhere else, there's no reason not to get rid of the for loop and echo out the data there. As far as accessing the data in your $dataArray array: since you used a mysql_fetch_assoc, you would use the column names from your db table as the keys in your array. For example, you would do this: echo $dataArray[0]['User']; // user in first row echo $dataArray[0]['Email']; // email in first row echo $dataArray[1]['User']; // user in 2nd row echo $dataArray[1]['Email']; // email in 2nd row Or you could loop through it or whatever. What needs to be put in your value='' in your form really depends on how you run your loop and what exactly you're wanting to put in your form.