Jump to content

deadlyp99

Members
  • Posts

    124
  • Joined

  • Last visited

Everything posted by deadlyp99

  1. Yeah I was reading up about it, not quite getting it yet, but it'll click once I start finding ways to use them
  2. Yeah that is a bot, I was getting those type of emails when I ran a ptc site a few years back, through logs I found it was a server doing the "post". So yeah, a simple math problem should solve 99.999% of bot-spam, though not the human kind. Those kinds of emails seem more like an attempt to find a way to exploit the server then anything. There are some quite complex worms that will auto-hack servers, so that's likely what it was. That or a bored 3 year old
  3. I gave you a resource that tells you exactly how to do what you are trying to do. But I personally don't believe in handing someone a fully done script when they didn't have anything to start with. Start writing it up, and if you run into problems post in this thread and either myself or others will help you out. Just please realize I don't intend to be cruel or seem like a jerk, I'm just trying to get you interested and learning rather then handing you a spoon full of code. You have to try before you can fail.
  4. Wonderful wonderful I got it working. Thanks to you I shortened my code a lot Thanks a lot From: $name = $_SESSION['name']; $User = "SELECT * FROM `UsersGeneral` WHERE Username='$name' LIMIT 1"; $UserQuery = mysql_query($User) or die(mysql_error()); while ($row = mysql_fetch_array($UserQuery)) { $LandLordID = $row['LandLordID']; $UserCapitol = "SELECT * FROM `LandLord` WHERE LandLordID='$LandLordID' LIMIT 1"; $UserCapitolQuery = mysql_query($UserCapitol) or die(mysql_error()); while ($row2 = mysql_fetch_array($UserCapitolQuery)) { $CapitolSquare = "SELECT * FROM `MapSquares` WHERE LandLordID='$LandLordID' LIMIT 1"; $CapitolSquareQuery = mysql_query($CapitolSquare) or die(mysql_error()); while ($row3 = mysql_fetch_array($CapitolSquareQuery)) { } } } To: $name = $_SESSION['name']; $sql = " SELECT * FROM UsersGeneral JOIN LandLord ON UsersGeneral.LandLordID = LandLord.LandLordID JOIN MapSquares ON LandLord.LandLordID = MapSquares.LandLordID WHERE UsersGeneral.Username = '$name'"; $result = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { }
  5. First of all, please use the BBcode "CODE" tags. its the "#" symbol on the editor. Second, do some research, I'll help you out this time: http://www.w3schools.com/PHP/php_mail.asp Now for re-directing, after your email is sent in the script you build, just add a header("Location: address");
  6. The only thing I can pick out is " and email is not null" from your messaging all function. It might not be an incorrect thing, but it's the only thing I know little about and find different (by a lot) compared to the other functions. Instead, you could make good practice of ensuring users have an email address, unless they cannot. Another option would to be to embed a email "checking" function to see if there is an email in row['email'] and whether or not it is a valid format to determine if the email should be sent to that user.
  7. Well i'll tell you something. Even the biggest sites don't do that. If you really want to combine your javascript files, Do a copy and paste Course that won't work out well if you dont pay attention. In addition look at this blog, it was written 2 3/4 years ago. It's more likely to be tailored to a larger dial up base of users then high speed internet. Even if you combine the files... I mean the same amount of data is being downloaded to the client, give or take a kilobyte or two in bandwidth. So why do you need this?
  8. Thank you for replying taquitosensei, I just about quadrupled my code since I posted, and while it doesn't effect the mysql, its going to be a little while before I get a chance to implement this query to test it out. So if I am undererstanding correctly, I'd go about using this like: $sql = "SELECT * UsersGeneral JOIN LandLord on UsersGeneral.LandLordID=LandLord.LandLordID JOIN MapSquares on LandLord.LandLordID=CapitalSquares.LandLordID WHERE UsersGeneral.Username='$name'"; $result = mysql_query($User) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { //Do stuff by Column name }
  9. Most likely this line right here, test and let us know :-] $new_loser_loss=($loser[loss] + 1);
  10. Eh, I do it all the time mate :-] It get's really hard to debug when your server has error reporting turned off
  11. You want to download the php file from your server? Be more clear please so we can accurately answer :-]
  12. $this->sesusername' At first glance, you simply missed a quote. So try that and let us know
  13. So, I remember once reading that nesting sql queries was bad, and I can see that it could be. But I'm not quite sure how I can make my code better, but it is already getting messy at the start of a long day of coding. I am going to post my table structure, along with the rows being using in the particular query (for data example). Now, I've been coding for a couple years, and I truly do want to improve in my efficiancy and code legibility. However I'm already starting to see this is going to turn into a big confusing mess if I don't get help making it better. Thanks in advance for any replies, and have a good day $row `UsersGeneral` ID Username PassHash Email LandLordID RaceType Active LastLogin LastIP ActivateID RegisterIP 17 nocare xxxxx xxxx@gmail.com 17 2 1 date xxx.xxx.xxx.xxx xxxxx xxx.xxx.xxx.xxx $row2 `LandLord` LandLordID SquareID Capitol 17 9033 1 $row3 `MapSquares` SquareID X Y LandLordID MapType OasisType CityID 9033 39 -7 17 1 0 1 $name = $_SESSION['name']; // <-- nocare $User = "SELECT * FROM `UsersGeneral` WHERE Username='$name' LIMIT 1"; $UserQuery = mysql_query($User) or die(mysql_error()); while ($row = mysql_fetch_array($UserQuery)) { $LandLordID = $row['LandLordID']; $UserCapitol = "SELECT * FROM `LandLord` WHERE LandLordID='$LandLordID' LIMIT 1"; $UserCapitolQuery = mysql_query($UserCapitol) or die(mysql_error()); while ($row2 = mysql_fetch_array($UserCapitolQuery)) { $CapitolSquare = "SELECT * FROM `MapSquares` WHERE LandLordID='$LandLordID' LIMIT 1"; $CapitolSquareQuery = mysql_query($CapitolSquare) or die(mysql_error()); while ($row3 = mysql_fetch_array($CapitolSquareQuery)) { echo "Username: ".$row['Username']." ID: ".$row['ID']." LandLordID: ".$row['LandLordID']." SquareID: ".$row2['SquareID']." Capitol: ".$row2['Capitol']." X: ".$row3['X']." Y: ".$row3['Y']." MapType: ".$row3['MapType']." CityID:".$row3['CityID']; } } } mysql_close($conn); Output: Username: nocare ID: 17 LandLordID: 17 SquareID: 9033 Capitol: 1 X: 39 Y: -7 MapType: 1 CityID:1
  14. Ah I see now. Thanks a lot. In addition I had to change a bit more in the loops for ($X = $StartX;$X<=$EndX;$X++) { for ($Y = $StartY;$Y<=$EndY;$Y++) { But it all worked out wonderfully, so thanks again
  15. So hello all. I'm creating a script taht logically defines a map: A shortened version of it is: [-1,-1][-1,0][-1,1] [0, -1][ 0,0 ][0, 1] [1,-1 ][1, 0 ][1, 1] I've got my output set up to display like this: StartID: 1 X: -5 Y: -5 MapType: 0 OasisType: 8 StartID: 2 X: -5 Y: -4 MapType: 6 OasisType: 0 StartID: 3 X: -5 Y: -3 MapType: 1 OasisType: 0 StartID: 4 X: -5 Y: -2 MapType: 7 OasisType: 0 StartID: 5 X: -5 Y: -1 MapType: 7 OasisType: 0 StartID: 6 X: -5 Y: 0 MapType: 3 OasisType: 0 StartID: 7 X: -5 Y: 1 MapType: 6 OasisType: 0 StartID: 8 X: -5 Y: 2 MapType: 7 OasisType: 0 StartID: 9 X: -5 Y: 3 MapType: 1 OasisType: 0 StartID: 10 X: -5 Y: 4 MapType: 1 OasisType: 0 StartID: 11 X: -5 Y: 5 MapType: 3 OasisType: 0 However, going on a -x,-x to x,x format, I'm finding only one row is being generated, which is -x,-x to -x,x I am pretty sure this is a problem in my for loop, but I'm not entirely sure what, so i'll post my code in hopes someone can find the error in my logic. I really appreciate anyone who can provide insight to what the problem is. Thanks in advanced, and have a great day <?php $StartID = 0; $StartX = -5; $StartY = -5; $EndX = 5; $EndY = 5; $MapType = array('1','2','3','4','5','6','7','8','9','10','11','12'); $OasisType = array('1','2','3','4','5','6','7','8'); $ThePool = array( '1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1', '1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1', '1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1', '1','1', '2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2', '3','3','3','3','3','3','3','3','3','3','3','3','3','3','3','3', '4','4','4','4','4','4','4','4','4','4','4','4','4','4','4','4', '5','5','5','5','5','5','5','5','5','5','5','5','5','5','5','5', '6','6','6','6','6','6','6','6','6','6','6','6','6','6','6','6', '7','7','7','7','7','7','7','7','7','7','7','7','7','7','7','7', '8','8','8','8','8','8', '9','9','9','9','9','9', '10','10','10','10','10','10', '11','11', '12','12', '1b','1b','1b', '2b','2b', '3b','3b','3b', '4b','4b', '5b','5b','5b', '6b','6b', '7b','7b', '8b','8b','8b','8b' ); for ($StartX;$StartX<=$EndX;$StartX++) { for ($StartY;$StartY<=$EndY;$StartY++) { $RandomChoice = $ThePool[array_rand($ThePool)]; if (is_numeric($RandomChoice)) { $MapType = $RandomChoice; $OasisType = '0'; } else { $MapType = '0'; $OasisType = ExtractOasisType($RandomChoice); } $StartID += 1; print("StartID: ".$StartID." X: ".$StartX." Y: ".$StartY." MapType: ".$MapType." OasisType: ".$OasisType."<br />"); } } function ExtractOasisType($Type) { $NewStr = str_replace('b', '', $Type); return $NewStr; } ?>
  16. Interesting. I don't remember that happening before though, but I havent touched mysql in many months, I've only worked on stuff with api's for their statements. Thanks, I feel stupid but I'll remember it, at least till I forget it, but hopefully it will click.
  17. Well i'm working on creating a forum, and so I'm playing around with getting my category listing as a starter towards the rest of the hell i'm creating. Anyways My problem is it will skip the first row, and I've got no idea why. Some insight would be nice, and any coding practice errors I've made can surely be pointed out as well. I welcome the criticism, it helps in the end. My Table: ID category_title sub_categories 1 News Announcements~Updates~Worklog 2 Other Spam~Spam~Spaaaaam! 3 placehold ugh~what~no My Code: <?php function retrieve_forums(){ // Lets start by starting the first level of display with the category $get_category = "SELECT * FROM `category` ORDER BY `ID`"; $resulting_categories = mysql_query($get_category) or die("wtfx: <br />".mysql_error()); // build an array of category and create sub-categories under if (mysql_fetch_row($resulting_categories)==0){ die("You need to create main categories...."); } else { while($category_row = mysql_fetch_array($resulting_categories)){ echo $category_row['category_title'] . "<br />"; } } } ?>
  18. Create a DIV for the image, and one for the input. Then use CSS to position and layer it. z-index in css for the layers.
  19. What about, instead of hiding the div, changing it to 0px by 0px, and no opacity?
  20. It would be a lot easier for us to help you if you put your page up online for us to view. there are plenty of free web hosting services out there, and I may be able to find you like a $5/mo option if you like. I'm having trouble visualizing something, and if I go off your notes to re-produce it I may not come up with the same things.
  21. Try something more simple to see if you can even do it from your server. If your doing it locally your isp needs to support it on their mail server, which they likely do not. http://us3.php.net/manual/en/function.mail.php
  22. I found I could just open up firebug and plug the rgb into the gimp. I thought they were images, but they aren't. I like the new layout more than the one I made after it. I didnt show you guys and I dont plan to lol. The concept was good, but the design wasn't coming out well.
  23. erm... this guy was a damn noob. OK, he calls out phpbb for not having updated their script. He found the exploit january 14th. It was released... january 14th. The time frame between them even knowing the vulnerability was made public and this noob finding it was within 24 hours. OK... so not everyone can find out about a new exploit and deal with it within that time frame. In my book, if you don't find the vulnerability yourself you didnt hack crap. He's just another skiddy trying to look cool on the internets.
  24. It was. But some people did go out and make one that worked. Dont remember the site it was on, but it cost like 10 bucks. Anyways. Assuming the headset uses a standard micro-connect stereo plug.. you could probably hackjob a splitter that would feed into the microphone port on your computer. Though with current technologies in electronics getting smaller and smaller, its not easy to do anymore. I used ot make splitters to record my cd players while listening to them, and it was pretty easy. But last time I tried to take apart headphones the wires were super small and wired weird. So once I removed them, they never worked again -.-
  25. Well I cant help the poster at all. He's looking for something he shouldn't be. Don't try to catch the leprechaun at the end of the rainbow, because even if you can catch him, the rainbow is endless you dig? lol The only real job I've had, was in highschool on weekends. I had stuff to do, but because I was taking like donations of doors, sinks, windows, etc, I didn't get many people coming. So I just sat with the dude from the goodwill truck all day and watched tv. Easiest job I think i'll ever have. 10.97/h. Can't beat that for doing next to nothing aside from changing out the movie playing on the tv. Most days I would only have 1 or 2 people come... in an 8 hour shift. To be honest it sucks having a job that requires you to do nothing all day when you have to be present. Because even though I was not doing anything productive... I still had to be there. Most jobs that require you to do very little, pay very little. You are best off creating plugins for scripts and selling those in communities about the scripts. I made about $400 bucks off of 3 plugins I made for AuroraGPT, a 'paid-to-click' script. Anti-cheat mostly... Being lazy on a computer, will not earn you anything. If you want a lazy job ask one of those dudes who wave signs in front of stores. That is the maximum lazyness that you can get without spending years working your way up to it, or without getting a good word put in. I had connections, thats how I got my lazy arse job.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.