-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
For a start, check out some mysql tutorials (if you don't like that one, do a google search) Specifically focus on SELECT queries, and showing the information from that queries. the rest should be simple to figure out
-
I don't use Macs because of my hatred for Apple. Why do I hate Apple? No reason, i'm just very irrational sometimes, and hate and love things on a whim. Funny thing is I have an iPod (like everyone else) and an Apple sticker on my PC. I have used Macs tho, and they are pretty cool. Not worth the money tho... Once all the glamour fades, and the price goes down maybe ill buy one.
-
[SOLVED] Need some help with a form. Noob question.
mikesta707 replied to nastynate604's topic in PHP Coding Help
no thats impossible. the variables you are trying to access don't actually exist when you are trying to access them. what exactly are you trying to do? url_decode() theoretically should work, depending on what you are trying to do. However, you could really just set the action to http://site.site.com/validation.aspx and instead of using the $_GET array, use the $_POST array on that aspx page -
definitely passwords, but thats because I have a cell phone to store my numbers and such.
-
you don't end the function. stick a closing curly brace after the last if statement
-
thats because you have the elseif connected to the if. if you want both to be able to fun, change the elseif to an if. the elseif won't run if the if before it runs (or any other elseifs before it have run)
-
[SOLVED] Need some help with a form. Noob question.
mikesta707 replied to nastynate604's topic in PHP Coding Help
depends on how your code is set up. the page where you get the $_GET variables, and process them should be where you use url_decode. why don't you just use Post? -
depends on what you do with the random map. Do you just want to show an image?
-
//then redirect them to the members area header("Location: members.php"); } } else { this else doesn't seem to be matched to any if. You have to match ifs and elses (IE they have to be right behind one another) if () { } else { } //not if (){ //do stuff } //do some other stuff else { }
-
hmm, can I see the login_user code?
-
ah man i gotta get me one of those.. thats awesome
-
[SOLVED] [][][]Insert file into directory from php[][][]
mikesta707 replied to DiscoTrio's topic in PHP Coding Help
copy() -
What's to stop someone from changing cookie/session value
mikesta707 replied to 9three's topic in PHP Coding Help
well as long as you don't put important stuff into the remember me cookies (besides their user and email, but its their computer, so I wouldn't really count that as a risk unless their computer got compromised, but that is something completely out of your control) if they alter their remember me cookies, then.. well.. the remember me stuff probably won't work -
obviously line 11 is where your output starts. put the header above that...
-
Also taking classes that teach you how to solve problems with programming is a great way to learn. While it may not be in the same language as you want to learn, knowing how to solve a problem in one programming language can usually be transfered over to another fairly easily, and learning the theory behind what you are doing never hurts either. if you can't do this, then obviously books are the way to go
-
oh man thats amazing. are there still golden guns and camo upgrades?
-
The view from the tallest man-made structure
mikesta707 replied to nrg_alpha's topic in Miscellaneous
an heroing never looked so good -
$_FILES['name'] is the name of the file being uploaded...
-
if you are just replacing single characters, and not matching against patterns, using str_replace would be faster
-
ahh yes you can use PHP's CLI which is indeed quite similar to how cin and cout work
-
you have to define the variable before you use the concatenation and assignment combo operator. something like $errors = ""; should fix the problem if you add that before your code
-
update script to display message every 24 hours
mikesta707 replied to kaiman's topic in PHP Coding Help
Can't really do that. PHP can get the time, and can get the time that is 24 hours from then, but you can't tell the page to execute something in 24 hours, unless you manually load the page every 24 hours. if you are only doing 1 CRON a day, (especially one that only updates 1 row of a table) you won't have to worry about server load -
did you put your php page into the htdocs folder? only pages there will be executes