Page 1 of 1
thread closed
Posted: Thu Feb 04, 2010 11:48 pm
by simonttz
thread closed
Re: Parse Error; Syntax error (PHPMYADMIN)
Posted: Fri Feb 05, 2010 12:08 am
by rahulzatakia
Hi,
please replace your first five lines code with the below code:
<?php
//opens connection to mysql server
$dbc = mysql_connect('thankyouanime4','username','password');
if (!$dbc) {
die('Not connected:' . mysql_error());
}
There was error in die() on line 5 as you have put ':' outside of single quote
Re: Parse Error; Syntax error (PHPMYADMIN)
Posted: Fri Feb 05, 2010 12:30 am
by califdon
rahulzatakia gave you the correct diagnosis and solution.
For your future guidance, the error message will tell you exactly what is wrong, saving you much time and trouble. It told you what file the error was in (connectionfile.php), what line the error was on (line 5), what kind of an error it was (syntax error), and the exact character that was wrong (unexpected ':' ).
If you will learn to read the error messages, you won't have to go through all that confusion about unrelated things. Please don't misunderstand, we are glad to help you, I'm just trying to save you time and trouble.
Re: Parse Error; Syntax error (PHPMYADMIN)
Posted: Fri Feb 05, 2010 12:30 am
by califdon
rahulzatakia gave you the correct diagnosis and solution.
For your future guidance, the error message will tell you exactly what is wrong, saving you much time and trouble. It told you what file the error was in (connectionfile.php), what line the error was on (line 5), what kind of an error it was (syntax error), and the exact character that was wrong (unexpected ':' ).
If you will learn to read the error messages, you won't have to go through all that confusion about unrelated things. Please don't misunderstand, we are glad to help you, I'm just trying to save you time and trouble.
Re: Parse Error; Syntax error (PHPMYADMIN)
Posted: Fri Feb 05, 2010 3:30 am
by simonttz
thank you so much. you guys have been very helpful.
Also - Since Godaddy does not permit the user privileges to be set in phpmyadmin is it safe to allow users to sign up and register without fear on my part that someone will be granted privileges that I would not want...?