First Login Script
View Single Post
02-14-2008, 12:28 AM
Join Date: Nov 2007
Ok, the error message is really odd. It almost looks like the httpd server isn't parsing PHP correctly and instead outputting all your PHP code. It seems as if it begins with the call to mysql_connect() but I don't see why.
Have you been successfully connecting to MySQL from this or another PHP script? Does this script have the .php extension (or the appropriate extension to parse PHP)?
Please use the provided PHP code tags when posting, it makes it much easier to spot errors, e.g.
Something else in your code important to mention; you're using addslashes()
mysql_real_escape_string(). Bad combination. You're going to get slashes upon slashes in your stored data. Not to mention if you have
turned "On" as well, you'll have three sets of slashes. It can get intense.
Make sure magic_quotes is turned "Off", and use mysql_real_escape_string()
I reject your reality, and substitute my own.
The Following User Says Thank You to SOCK For This Useful Post:
View Public Profile
Send a private message to SOCK
Find More Posts by SOCK