danielwalters6 wrote:Unfortunately nothing jumped out and grabbed me, claiming to be the problem.
Would it be possible for someone to actually try my code, with their own database values in, just to confirm it's correct.
Should the Database values be in the 'single quotes'
Code: Select all
mysql_connect('xxx.xxx.xxx.xxx', 'uuuuuuuu', 'ppppppp');
It could be that you don't know what to look for.
I ran your code through PHP's syntax checker before and it confirmed what I thought: no problems. So it must be in the censored part - the only (?) difference between your not-working code and the posted is-working code.
Single quotes are fine.
astions... huh, when did he become a mod... anyways, astions mentioned the only thing I can think of that's causing the problem: quotes in your username or password. If you had one in the password then the highlighting would look like
Code: Select all
mysql_connect('xxx.xxx.xxx.xxx', 'uuuuuuuu', 'ppp'pppp');
See how the coloring changes? That's what you would see. Except if I do that I get a generic "parse error" and not the T_BLAH message you have so it must be something else. Perhaps your code is more complicated and uses more than just a couple literal strings?
Finally, are you absolutely sure you're looking at the right line number in the right file?