Search found 12 matches

by ianao
Tue Dec 15, 2009 8:06 am
Forum: General Discussion
Topic: Keeping automatic emails out of the spam folder
Replies: 2
Views: 354

Re: Keeping automatic emails out of the spam folder

Hi

I'm using Hotmail, and I can't see any options saying 'original message'. I can get to message source if that's the same thing...?

Many thanks for your help.
by ianao
Mon Dec 14, 2009 9:56 am
Forum: General Discussion
Topic: Keeping automatic emails out of the spam folder
Replies: 2
Views: 354

Keeping automatic emails out of the spam folder

Hi I am trying to set up a PHP mail function that sends a new member a welcome email. Here's a snippet: $headers = "MIME-Version:1.0\r\n"; $headers .= "Content-type:text/html;"; $headers .= " charset=iso-8859-1\r\n"; $headers .= "From: email@email.com \r\n"; $...
by ianao
Tue Jun 09, 2009 7:04 am
Forum: PHP - Code
Topic: Uploading and resizing images
Replies: 9
Views: 242

Re: Uploading and resizing images

I use the GIMP to resize images, but should a user be expected to use a graphics program or should the PHP do it automatically for them?

My client feels it should be done automatically...

best
ianao
by ianao
Tue Jun 09, 2009 2:11 am
Forum: PHP - Code
Topic: Uploading and resizing images
Replies: 9
Views: 242

Re: Uploading and resizing images

Hmm. Thanks for the response, but sadly way over my head.

I suppose my question is: should I go down the route of trying to find a way to resize images automatically (I'm concerned about bandwidth problems), or should I insist that users resize their own images before upload?

Best
ianao :|
by ianao
Mon Jun 08, 2009 4:33 am
Forum: PHP - Code
Topic: Uploading and resizing images
Replies: 9
Views: 242

Uploading and resizing images

Hi I'm developing a site where visitors can upload their own property images. No problem with the upload part, but the problem is with resizing. Firstly, is it a good idea to resize at the server (the alternative being an instruction to the visitor on how to prepare their own images) anyway? Here is...
by ianao
Fri May 22, 2009 11:15 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Not stupid at all. The email address came about from a posting from another file, and the error was in there. All sorted now, so thanks again for the help.

Yup. Got my SQL injection killer sorted.

Best
ianao
by ianao
Fri May 22, 2009 10:12 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Aha!

I tried changing the $email variable to the email string, and it worked!!

Now just got to figure out why it doesn't like the variable.

Thanks everyone and have a great weekend!

ianao
by ianao
Fri May 22, 2009 9:40 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Nope.

I tried escaping the "s as well, still no luck.

:cry:
by ianao
Fri May 22, 2009 9:24 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Hi

This is the echo'd result:

Code: Select all

UPDATE members SET `password`='101186a9a44bc0354ed997696a6aefba' WHERE `email`='$email'
Just can't see what's wrong.

Ianao
by ianao
Fri May 22, 2009 9:03 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Hi

I've tried backticking like this, but to no avail. It's still not updating.

Code: Select all

mysql_query("UPDATE `members` SET `password`='$newpassword' WHERE `email`='$email'")
Any other thoughts would be most welcome.

Best
ianao
by ianao
Fri May 22, 2009 8:15 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

Re: updating an MD5 password

Hi

I can see how that would be very useful if it were producing an error, but frustratingly it's not doing that. It simply will not update the password field.

Best
ianao
by ianao
Fri May 22, 2009 7:10 am
Forum: PHP - Code
Topic: updating an MD5 password
Replies: 12
Views: 638

updating an MD5 password

Hi I have been Googling all morning but can't find the answer I'm looking for. I am trying to write some PHP to update a user password. Here is an extract from my code:   $newpassword = md5($_POST['newpassword']); mysql_query("UPDATE members SET password='$newpassword' WHERE email='$email'"...