Hi,

I'm new to PHP, but not to computer programming. I'm trying to connect to ny MySQL database and thought I followed what the tutorial said exactly. Obviously not.

I realize that this is an error indicating a missing control character, but I have no clue as to what it would be.

Here's the statement that fails:

$dbc = mysql_connect('localhost','kotw_wdps1','D0Qy6DUuOnhZ5m9R') or die('Not connected : ' . mysql_error());

I'd appreciate it if someone could tell me why this has an error in it.

Best regards,
Michael

Recommended Answers

All 5 Replies

Member Avatar for diafol

Are you sure it's this line?
What have you got above and below this?

the error is not in this line...better provide codes above and below......

ARRRRGGGHHH! <slapping head /> I left off the ; on the line above. Thank you very much for that help. It is much appreciated.

Member Avatar for diafol

OK mark as solved.

OK mark as solved.

OK, but I'm new here. How do you mark a request as solved?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.