Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
The first code has this: if ($Contact_To == 'bob') { $Contact_To == 'mynamesbob@site.net'; //Bob's Email... } elseif ($Contact_To == 'jack') { $Contact_To == 'jacksthename@site.net'; //Jack's Email... } elseif ($Contact_To == 'jill') { Which is not correct - he uses == everywhere.
-
Did you search for this? It's been addressed several times the past few days. IE sends image/pjpeg - there is also image/jpeg
-
$Contact_To = $_SERVER['QUERY_STRING']; What is that? I think you want $_POST['contact'] or something.
-
you could add a field to the users which contains a comma delimited list of all the avatarIDs they've unlocked - or have a table of just userids and avatarids.
-
you could use sort which will reorder them with new keys.
-
The last line doesn't have a ; at the end. Also, == is the comparison operator, = is the assignment. You should use a switch or an array here instead of this big ifelse Fear, what did you change?
-
No, you should use the database specific functions. If you're using mysql, use the mysql functions. http://us3.php.net/manual/en/security.database.sql-injection.php "Quote each non numeric user supplied value that is passed to the database with the database-specific string escape function"
-
$lyric = mysql_real_escape_string($lyric); $sql = "INSERT INTO `$table` VALUES ('$pc', '$pBy', '$email', '$lyric', '$song', '$artist', '$date','','')"; mysql_query($sql);
-
Why would someone go to "Graphics-Dream" for help with PHP?
-
Are you sure $pword has a value before you encrypt it? Also : $sql = "INSERT INTO main (password) values ('$pw')"; Will set all of the passwords equal to that. You want to get the username and password from the registration form, then encrypt the password and insert them at the same time. Then when they login, encrypt the password they supply and do a select WHERE username=username and password= enycrptyed password.
-
I had a similar problem last night and it was because I was going from www.mysite.com to mysite.com - make sure that's not it.
-
http://www.phpfreaks.com/tutorials/142/0.php
-
[SOLVED] Newbie Help - displaying text after changes on the page
Jessica replied to johng's topic in PHP Coding Help
What you're trying to do is javascript. Check out mootools.net -
We'd need to see more code. Don't use crypt and md5, pick one or the other. Do the encryption either always in your SQL or always in the php.
-
SELECT * FROM table WHERE col1 = '$col1'; Read some of the tutorials on here.
-
It's a truck, they have high center of gravity - it's only slightly harder than flipping an SUV.
-
Well I didn't mean literally tell him to f off, I'm not that stupid When I left that job I gave them a month's notice that I was going back to school, and they toss me work all the time. But every single person there said they were proud of me for going back to school. If this guy's boss is saying he should put work before his degree, and they're not even paying him a decent salary, it's time for the figurative f-off. While I personally think work experience is more valuable than the degree, there's no value in working for too little pay for a boss with expectations you won't meet. So I say find a job that will pay better while you finish school, if you really want to finish. (I'm having trouble with it myself, but it's worth it to me because it's a personal goal - and statistically you can get higher pay with a degree. But a lot of employers really don't care - the smaller the company the less important the degrees are.)
-
Uhm, you get paid hourly obviously, and you're offered a .50 cent raise? wtf? I hadn't graduated and I got a dev job paying $40k a year in texas, where we have some of the lowest payrates. Tell him to F off and find a decent job or finish school.
-
while ($row = mysql_fetch_object($result)){ you were missing a { Indent your code!
-
[SOLVED] PHP Upload form - unidentified index ?
Jessica replied to firoki's topic in PHP Coding Help
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } The two variables are not the same. One says uploaded and one says uploadedfile. It needs to be the name of your input in your form, which I assume is uploaded. -
$_SESSION[user] needs to be $_SESSION['user']; Put print_r($_SESSION) at the top of the page and you can see what's stored in the session. Also, sessions do not last between mysite.com and www.mysite.com
-
[SOLVED] PHP Upload form - unidentified index ?
Jessica replied to firoki's topic in PHP Coding Help
You use $_FILES['uploaded'] one spot, and then uploadedfile another. use the same name -
session_start() must be on the top of EVERY page.
-
Yes, but you're still trying to store code in a string, instead of just writing the code. Stop doing that, and just write the code with if(){}else{}