Jim Moseby wrote:
I am trying to connect to a datbase:
"
mysql_select_db ('database')
or die ("couldnt connect to databse")
"
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
George B wrote:
I am trying to connect to a datbase:
"
mysql_select_db ('database')
or die ("couldnt connect to databse")
"
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
Are either one of those lines, line 12?
--
John C. Ni
>
> I am trying to connect to a datbase:
>
> "
> mysql_select_db ('database')
> or die ("couldnt connect to databse")
> "
> What is wrong here?
> This is the error:
>
> Parse error: syntax error, unexpected T_STRING in file name on line 12
>
> --
> PHP General Mailing List (http://www.ph
> Thanks JM!
> It was another one of my usual mistakes :P
> Forgot the semicolon. I don't underestand why you have to put
> in so many
> semicolons... Hmm.. Is it a thing from C or something?
When I see that T_STRING error, missing semicolon is the first thing I look
for. I don't know the histo
* George B <[EMAIL PROTECTED]> :
> Jim Moseby wrote:
> > > I am trying to connect to a datbase:
> > >
> > > "
> > > mysql_select_db ('database')
> > > or die ("couldnt connect to databse")
> > > "
> > > What is wrong here?
> > > This is the error:
> > >
> > > Parse error: syntax error, unexpected
5 matches
Mail list logo