![](https://xisto.com/discuss/uploads/set_resources_4/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
saga
Members-
Content Count
235 -
Joined
-
Last visited
Everything posted by saga
-
First I believe that using the condition elseif($rowcheck > 1) to check if the user entered the wrong user or password is a mistake. Your sql query "SELECT * FROM name='$name' AND password='$password'" returns the number of rows resulted from the query which in most cases will return 1 or less than one unless of course there are multiple entry in your database in which user name is not unique meaning there are name entries with the same name. It should not be the case. User name should be unique and only password can have duplicate but never the user name. The right condtion statement should be, assuming that user name is unique. if($rowcheck == 1){ //user name and password is ok}else{ //wrong password or username} About the error report.. use <pre></pre> instead of <p></p> tag. The difference between the two is that the <pre> tag is sensitive to spaces and new lines. What ever space or new line inside the tag will be reflected or displayed. The <p> tag does not allow new line or <br /> since its in pharagraph formating which means there should be no new line inside the tag. So for pre-formatted text use <pre></pre>. For logging the IP address I believe there is a global variable that holds it or maybe a function that returns the IP address, I forgot about it. You could visit PHP.net they have good ducmentation in their website. About the lost password feature. First you must have a record or entry in your Members database about their e-maill address. The common way for this to work is to ask the e-mail address of the user which it supplied when he register to your website. Then you check if the supplied e-mail address match to the user in your database. If it match then use the mail() function to e-mail the new generated password. By the way about your password. I noticed that you get the one supplied by the user from $_POST[] directly then compared it directly in your query without encryption. This only mean that you havent encrtypted the password. For better security you should encrypt your password and the recommended one is the one way encryption. Here is how it works. 1. During registration you get the desired password then encrypt it using the crypt() function and save the result encrypted data to your database. crypt() function is a one way encrytion. Meaning you can not decrypt anymore what is encrtypted using the crypt() function. 2.To verify password during log-in, first you have to encrypt the supplied password using crypt(). The result encrypted data is the one used to check if it matches the encrypted password save in the database; $pass = crypt($_POST['password']);$query = "SELECT * FROM members WHERE userName LIKE '$name' AND password LIKE '$pass'"in this way.. even if the database is compromised the password will still not be stolen since it is encrtypted using one way encryption. They may have the encrypted password but there is no way for them to know what are the actual values unless if they are the CIA or NSA.
-
I'm not an American but I just cant understand why Bush won the last election. Was it not proof enough the Bush is a liar when he led America to a war supposed to be because WMD but in the end there is none and it was clear the the intention is to put up a puppet regime to control the most valuable asset of Iraq which is oil. The puppet regime that your government installed in Iraq can not even provide evidence that WMD exist. My point is if there really is WMD it would not be hard to find it now since Saddam is long gone. Such an act of deceit coming from your leader is not acceptable but yet most of the American citizen vote for him. Is American citizen getting naive when it comes to political choices?
-
Global Warming is the answer to the question "Why is our climate changing so fast?"If we do not find alternative source of energy that can be use without producing fumes those iceberg will go extinct. Vehicles is the number one source of air pollution which causes green house effect. The gigantic ice continent is melting fast that it introduces fresh water to our ocean thus raising the see level and changin our climate.Its ironic that man is the only capable specie that can protect the planet but we have become the destructive force of our own environment and home world.But dont worry these blue iceberg will have their vengence on us. When the violent reaction of nature reduces human technology or slows human progress (major cities destroyed by horrific storms or swallowed by the raising see level) the remaining blue iceberg can relax for another hundreds of years.
-
My First Sig. Seriously my First Sig ever
saga replied to TypoMage's topic in Graphics, Design & Animation
For a first sig i think its great. My first sig is not half the quality compared to yours. I would have love it more if the color is all red/maroon. I think the milky white or whatever that colors name is, dont fit well with red. And the border is a little thick. Maybe 1 or 2 pixel border width is better. -
I think its possible with this teknik.. assuming that I get wat u mean... You can manually send data to the form processor/page. http:// https://www.icloud.com/ https://www.icloud.com/ https://www.icloud.com/ With one click on the dropdouwn list you can make a javascript that will open this addresses with the data attached to the URL.
-
The Power Of Java the best application that shows java features
saga replied to Jdeveloper's topic in Programming
Success of Java lies in its portability. You only need to complite it once and it will in any platform, from Windows to Unix system. Although it will not run as fast as native code but being able to run in multiple platforms without recompiling it is great.One feature that is very fun to use is its lighweight frames. With these technology you can create an application that will have a GUI of your choosing. Meaning even if you run the application in Windows System you can have an application GUI with a Mac look and feel or maybe Unix windows look and feel. -
the marked red should be body { background-image:url("http://img.photobucket.com/albums/v614/Dj169211/background.jpg"); background-repeat: no-repeat}
-
Yeah it would be cool if you will simply die.. I mean die in your sleep.. What if you will know the cause of death and it would say that you will be murdered or run over by a train or perhaps tortured first before murdered?
-
How Safe Are Condoms? Even if they break?
saga replied to Dagoth Nereviar's topic in General Discussion
Well as long as it is safer statistically than withdrawal we dont have to wory about it.If there is a 5% or 2% chance that it will break I would have to say its pure bad luck if it happens. Condom is really not about preventing your partner from getting pregnant. Its more about preventing you from acquiring sexually transmitted desease and the best prevention is do not have sex with someone you dont know or trust. I never used condom but I never got this deseases. Well im only having sex with my friends not with some random girls on the street. Sex is a great thing but having AIDS is another thing. But if you cant help it, trust you life to a condom and hope it wont break. -
I dont want to know...the mystery of death and dying keeps us from living.... we are trying to live for we always hope that the future will be better if not better will be longer...
-
Death penalty should not be the ultimate punishment.We all die. To take a life is not punishment for the one punished will never feel the effect or remorse after his/she is dead.There should be a punishment in which the guilty will still live but will suffer in a bitter way for the wrong act he/she has done. In the case of rapist, their genital should be removed depending of the rape situation. This way as long as he lives he will remember his sin and will regret his act. To suffer as long as you live is the greatest punishment. The suffering must be a hundred times greater compared to his victim. If the victim will have to bear a scar in her mortal life the rapist must bear a deep wound as long as he live.
-
although i havent visited the site.... i still thank you for going all the trouble just to inform us about the site.. Thanks...
-
Best Movie Of All Time? what is the best movie of all time?
saga replied to lil_chris's topic in General Discussion
For me it would be Thin Red Line....it has drama, war and action in one package..but best of all it shows people in war... different perspective from different people with different motivation in fighting the war...it also didnt project the enemy of the main characters as evil people like how it was presented in Saving Private Ryan, but it showed that they are just another people too mostly in the same situation as they are but are in the opposite side... all in all, it shows the worst and best of us.. -
here is my latest.. i tried to make it as simple as it could be.. so? is worth the time? =)
-
i like the color and the way you use the render as a background.. but the text didnt work for me... i dont know maybe it would look better if the distance of the shadow is closer.. say 1 maybe.. becuase the text feels like not part of the sig.. anyway thats just my opinion..
-
ok.. thanx.. actualy above the RF ONLINE letters are not letter =) they came with the tech brush ..waht size should i use? im not familiar with the proper sizes..
-
Microsoft Warns Users Of Pirated Windows Os with a Desktop Message
saga replied to Inspiron's topic in Operating Systems
another challenge by the crackers =)...this thing maybe a wonder in the beginning but crackers can find someway to defeat it.. its just 0 and 1 =) -
I just want to know who plays RF Online here...tell us your race and class...im with the Bellato Federation and my class is a Rider..anyone out there?
-
i played this online game RF Online and I am a member of new guild.. anyway so i created this sig for the guild.. its not final though.. so i need comments so that i may change the sig to a much more representable sig =)
-
well the render realy doesnt fit with the background... so do u have any tips on how to choose on what background to what render?
-
ive been busy lately.. anyway.. here is my newest sig.. so what do you think.. am i getting better or worst?
-
Rf Online Sig: My Latest ONLINE GAME SIG
saga replied to saga's topic in Graphics, Design & Animation
im glad you liked it... are u familiar with the game? actualy they are 2 diferent picture, the litle one is a render i found in animerender.com i guess and the close up one, i cut it from the official wallpaper of rfonline.ph.... anyway.. tnx... by the way.. what do you think i could have done to make the other 2 sigs better.... -
well, im playing this online game RF (Rising Force) so i made a sig for it.. i hope players of this game will like this 3 sigs... and for the gurus.. comments are badly needed specialy critics... so here is the sig for the 3 race of the game.. comments please...
-
i'm glad you like it