Weird to see a response to something I wrote 6 years ago. My how times have changed.

First, please replace stripslashes with mysql_real_escape_string. I was young and ignorant.

Check to make sure don't have any extra single quotes or to make sure you don't have any extra double quotes. That error is indicating that mysql can't execute the query, so there's something wrong with it. Can you print out the entire query you're generating and repost?

Friends

Comments

Hi Akozlik, I followed your tut at http://www.dreamincode.net/forums/topic/52783-basic-login-script-with-php/ <em>to the letter</em> but for some reason, after I enter my login details and submit, all I get is the logincheck.php page which is blank. I can only assume evrything is working apart from the redirect which is in the same dir. as the other pages. Any idea what this cou...

I would check your paths but really it's different from system to system. I don't think I can help you too much further. If you post on the actual discussion though someone else may be able to give you assistance. Good luck.

Hi akozlik. The tutorial "Uploading images with php" have been useful for newbies like me. Now it has been easy to upload and fetch the images from database while executing on localhost. But I am having the problem with uploading the image when I am executing program on server. can you help me with this?