Jump to content
xisto Community

dogomchawi

Members
  • Content Count

    42
  • Joined

  • Last visited

Everything posted by dogomchawi

  1. Well that is the idea behind the code, yes. But there is a lot more that is involved in getting people to sign up for your site.For one, you need to run a check to make sure that the username and password are alpha numeric (only letters and numbers) to make sure that no one can use it to screw up your site.Secondly you need to take the username that they specify and check it against the database to see if someone has already used that username.If you want them to be able to log in with the same to input spots then your goin to need to check if the username already exists and if it does then u have to check to see if the password is right.If all you want to do is use those two lines to let users only sign up then you need to ( IF the username doesnt already exist) store both of them in the database.A good thing to do tho is to ask for thier email and send a verification code to that email that will allow them to activate thier accounts. Otherwise you could get people signing up with random information for random reasons and it will flood your site.Also in order to get that code to work right your going to need to learn how to use PHP with HTML forms and have the users info get sumbitted to a page (could be the same page if u want) that will manipulate the variables that are passed to the code.That should get u started at least =)I would suggest getting the PHP/MYSQL Visual QuickStart Guide from Amazon.com. It has a whole section that will teach you and show u the code involved in creating login/registration pages.Cheers
  2. haha nice although i would be scared linkin someone my paypal stuffwith all the crappy identity theft - who knows tho If you did it and havent lost your family fortune then maybe it aint one of those ripoff sites =)Lemme know if you start loosin money out of your account ahah
  3. have you tried looking at your access rights? Maybe its freaking out cuz you dont have high enough clearance to run jobs like that on the different servers.I had a problem like that at work where the different servers had different permissions and so whenever we ran a distribution job it would screw everything up and lock a cple folders cuz it sensed illegal access to the files.Unless you already have the highest level clearance =(I havent really used Novell enough either to know how all of its permissions and stuff work but hopefully it helped a little =)
  4. Hmm - that is weird that it happened to you. I just tried it on a couple of my browsers (including FireFox) and I didnt have that problem on any of the pages...It might be that you changed preferences or something by accident in your browser prefs. I would try maybe re-downloading the browser if you cant figure it out using the preference pane....Ya I just had my friend try it too and it seems to work fine for him. Mebbe its doin it just to get you angsty haha. Websites have a habit of doin that - at least to me.Good luck with yer site mate.
  5. Bluhapp is a tight sigI like the one with the 3d render of the spraypaint guy too.Takes some talent to render that if it really is a 3d guy.I wish that 3D guy was a little smaller tho he takes up a ton of the sig.In Bluhapp's the color scheme is tight and that monster thing on one half of the sig looks pretty intense. I always liked those kinda colors on a sig and the image is balanced out well.So ya my vote is gonna go to BluhappAnd ya i wish i could do that stuff too hahaBluhapp: 2TrueFusion: 0SarCasM: 0mayank: 0Rejected: 0samma: 0Moody: 0SnXster: 0 Notice from Rejected: Please keep the score.
  6. There are currently 5 computers in my house - three of which are mine =)4 Mac's and one PC that i built off parts that I bought from newegg, cuz newegg is the king of all computer stores. And mac's are the king of all computers =PAnd, thanks to Wireless DSL, all those computers are online. It makes it easy for me to multitask when i am playing World of Warcraft muahahah
  7. Imagine being the guy that she got married to?How can u say u love two guys at the same time - then dump then and get engaged to a third guy?Sounds like she is wicked insecure too which is gonna make her vulnerable later in lifeWell that is a sorry story - but its prolly better that u got out of it as quick as possible haha
  8. at least its nice to see that you guys discourge plagarismShould prevent too many of these types of postsIs there a location that lists how many points are deducted for stuff like this?
  9. Wow this is definately an awesome script - wicked usefull!One question I have tho is how does the browser handle the image? Will the browser still cache the image locally? Cus if it didnt that might result in an increase of BW But the whole idea of hiding the url is one i have been thinknig about for a while - especially since someone posted somewhere else in the forums that someone has been rippin images off thier site and using there bandwidth and crazy stuff like that Gratz on the Hotscript success by the way!
  10. World of Warcraft PVP'in definately gives me the biggest rush ever. You have to walk up to this chick in the game and she will let u join the battle - and then you wait a cple minutes (which is when the rush builds up) and then you can join when the map is full. And there is this little noise thing that goes off every minute and you jump thinkin that the battle is almost ready.As soon as you zone in the rush hits you - all the other guys on your team are yelling and hollering and buffin each other for the fight . Then the gates open and your massive team pours out and begins to fight for the control points. Then you have to charge around and defeat the enemy and gain control of the resources from the different control points. And you have to clash against other human players and fight skill for skill instead of just hittin a button and killin you opponent. You actually have to outsmart your opponent otherwise you will get pasted. I love it hahaTalk about intense =) and then when on Tuesday morning they update the PVP stuff and you see that you have gained a PVP rank again !!! OOOOO! The higher your rank the better special PVP loot you can get! HooRah!
  11. Anyone see any of this stuff as a major security risk? I mean, if there were some guys lookin to plan an attack they could get a full layout of a minlitary base? Seem shady to anyone? Someone mentioned before that this might be one of the things that people are afraid of Google for allowing. I personally think its pretty killerNice job on gettin Area51 by the way =P
  12. Well I dont think it would have a brand if you custom built it =P But NewEgg is the king of all computer stores. They always ship stuff a day or two early. One order took less than 24 hours with standard shipping. Only problem with that compy is that it would use Windows 98 =P
  13. Well the "www" thing is the folder name that Cpanel uses to determine publiclpy available .php and .html files and stuffAnother thing to watch out for is hard coding your username but that isnt really a major problemI have never had to code anything past the "../filename.php" becuase i use a hierarchy structure. With this host I am not sure yet (havnet got an account) but there should be a folder level somewhere that contains the "www" folder - I have always used the superfolder to hold all the other stuff that i want to keep private from the public but accessable to other files later on. that way all you need is the "../" to get to the root folder past the "www" folder.Dunno if that will help but it might come in handy later on in your coding expiriences =)GL
  14. What the others said already is definately true - you should, if it is a business or such related site, try to protect it legally.It is a serious offense to copy site stuff like that. I don't know the fines involved but i know that stolen site artwork and stuff can create a lawsuit / fine that can run for 10's of thousand of dollars that the ripper has to pay back to the original owner.There are entire sites devoted to preventing stuff like this - I would say that you should check em out and see either what they offer or what measures they reccomend. There is a site for pictures (ripperhunting.com) that makes it thier job to find people who do this kind of stuff.good luck
  15. One thing you might want to try - unless you HAVE to use the web - is to get the PHP Visual quickstart guide from Amazon.com I used this book to teach myself PHP and it is an awesome book - It gives tons of exampls - It uses real code - It is easy to read - Good formatting - Meant to be read while in front of Dreamweaver - Not boring and useless like the other books out there Plus its nice to be able to look at a book and save the pages and stuff without having to keep swapping windows on the screen to look at code. Here is the link in Amazon. CLICK HERE
  16. Without knowing the error that you were encountering I am going to give you my best explanation of what is wrong. I highlighted the lines with the problems on it below. $sql = "SELECT * FROM charinf WHERE nimi = $flgin"; $sql = "INSERT INTO kott (omanik, aid, arv, kat) VALUES ($flgin , $osta , 1 , 1)"; $sql = "UPDATE charinf SET raha = $jarraha WHERE nimi = $flgin"; Explanation: When you are working with "" in PHP/MySQL you need to remember that it will treat it as a literal string. What the code lines above are telling the MySQl to do is to compare two columns together - not the values of a variable in one of the columns ( i.e SELECT all from the charinf table where the table column nimi is equal to the table column with the name of the variable of $flgin). This is not what you are looking to do with this code. If you want to use variables in a MySQL statement within PHP you need to put it in single quotes (' '). Here is my proposed solution:: if($s == "poed") { if($c == "relva") { if($osta <= 4 && $osta > 0) { $sql = "SELECT * FROM charinf WHERE nimi = '$flgin' "; $query = mysql_query($sql); while($q = mysql_fetch_array($query)) { $hraha = $q["raha"]; } if($hraha >= $relvahinnad[$osta]) { $sql = "INSERT INTO kott (omanik, aid, arv, kat) VALUES ('$flgin' , '$osta' , 1 , 1)"; mysql_query($sql); $jarraha = $hraha - $relvahinnad[$osta]; $sql = "UPDATE charinf SET raha = '$jarraha' WHERE nimi = '$flgin' "; mysql_query($sql); } } } } NOW - assuming that all your other syntax and stuff is right according to how u wrote the rest of tha page - the code above should work. If not then you would still have had that problem with the code anyways. Notice from snlildude87: Posts merged
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.