Hello,

I have been using these scripts previously but had to reconfigure again for a new setup

I user admin.php to add info to a mysql database tabels like "name" "category" "filename" "password"

When i enter this info and click submin i get the following error

Parse error: syntax error, unexpected T_VARIABLE in /home/house-call.net/public_html/db.php on line 3

I tryed using localhost as the DB_Host
Also i tryed my domain name house-call.net and also the server ip
None have worked

Here's the 1st few lines from my db.php

dream<?php//db.php: Database functionality
//Fill in the values below to connect to the database
$DB_Host	= "localhost";
$DB_Username	= "xxx_dbad2";
$DB_Password	= "xxx";
$DB_Database	= "xxx_db2";$db_link	= mysql_connect( $DB_HOST, $DB_Username, $DB_Password )
			or die( 'Could not connect to DB: ' . mysql_error() );

Thanks in advanced

    sounds wrote:

    I tryed using localhost as the DB_Host
    Also i tryed my domain name house-call.net and also the server ip
    None have worked

    Parse errors have nothing to do with the values of certain variables or anything like that. A parse error means that PHP couldn't even read the code you've written and compile it into an executable form.

    As to what your problem is, I have no idea; the code you posted above contains no parse errors.

      sounds wrote:

      I tryed using localhost as the DB_Host
      Also i tryed my domain name house-call.net and also the server ip
      None have worked

      Parse errors have nothing to do with the values of certain variables or anything like that. A parse error means that PHP couldn't even read the code you've written and compile it into an executable form.

      As to what your problem is, I have no idea; the code you posted above contains no parse errors.

        Thanks

        It was "dream" at the start

        <?php
        //dream
        //db.php: Database functionality
        //Fill in the values below to connect to the database
        $DB_Host	= "localhost";
          Write a Reply...