database connection problems?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • researcher

    database connection problems?

    Hi,
    I am all new to php/mysql and was wondering if someone might help me
    out on a little problem that I am having.
    It must be something very simple that I am missing, it seems that I am
    having trouble connecting to the database, yet all of my information
    seems to be correct - the error is as follows:

    Parse error: parse error in
    /data/members/free/tripod/uk/t/h/e/theresearcher/htdocs/scripts/conf.inc.php
    on line 6
    the error repeats twice.

    Line 6 in my conf.inc.php states:
    $mysql_database ='theresearcher _uk_db';

    I have enabled both php and mysql twice just to be sure. Hostname
    localhost is correct. Double checked the database name. No password is
    required so i left it blank. (should I take the line out alltogether?)
    I dont know what to do about the port..lycos didnt say anything about
    it so I left it blank. The table prefix I am not sure of either.

    Here is the surrounding code:
    $mysql_hostname ='localhost';
    $mysql_port='';
    $mysql_user='th eresearcher';
    $mysql_password ='';
    $mysql_database ='theresearcher _uk_db';
    $mysql_table_pr efix='';
    $mysql_pconnect ="NO";
    $pages_dir='/data/members/free/tripod/uk/t/h/e/theresearcher/htdocs/';
    $pages_url='htt p://members.lycos.c o.uk/theresearcher/pages/';
    $scripts_dir='/data/members/free/tripod/uk/t/h/e/theresearcher/htdocs/;
    $scripts_url='h ttp://members.lycos.c o.uk/theresearcher/scripts/';

    Thanks a bunch for your time!
  • Alvaro G Vicario

    #2
    Re: database connection problems?

    *** researcher wrote/escribió (2 Nov 2004 20:16:31 -0800):[color=blue]
    > It must be something very simple that I am missing, it seems that I am
    > having trouble connecting to the database, yet all of my information
    > seems to be correct - the error is as follows:
    >
    > Parse error: parse error in[/color]

    A parse error is not a permissions error, it means you have a typo in your
    code.

    [color=blue]
    > $scripts_dir='/data/members/free/tripod/uk/t/h/e/theresearcher/htdocs/;
    > $scripts_url='h ttp://members.lycos.c o.uk/theresearcher/scripts/';[/color]

    That's it: you didn't close the single quotes.


    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Thank you for not e-mailing me your questions
    --

    Comment

    • researcher

      #3
      Re: database connection problems?

      Thanks again!






      Alvaro G Vicario <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in message news:<o50rmq54j cnt$.17uh48zvux 6rj$.dlg@40tude .net>...[color=blue]
      > *** researcher wrote/escribió (2 Nov 2004 20:16:31 -0800):[color=green]
      > > It must be something very simple that I am missing, it seems that I am
      > > having trouble connecting to the database, yet all of my information
      > > seems to be correct - the error is as follows:
      > >
      > > Parse error: parse error in[/color]
      >
      > A parse error is not a permissions error, it means you have a typo in your
      > code.
      >
      >[color=green]
      > > $scripts_dir='/data/members/free/tripod/uk/t/h/e/theresearcher/htdocs/;
      > > $scripts_url='h ttp://members.lycos.c o.uk/theresearcher/scripts/';[/color]
      >
      > That's it: you didn't close the single quotes.[/color]

      Comment

      Working...