Jump to content

BrianM

Members
  • Posts

    217
  • Joined

  • Last visited

    Never

Posts posted by BrianM

  1. <?php
    function process_form(){
    global $db, $id, $title, $article;
    
    $edited_title = mysql_real_escape_string($_POST['title']);
    $edited_article = mysql_real_escape_string($_POST['body']);
    
    
    //check to see if title has changed, if changed, update db
    if ($title != $edited_title){
    
    	$db->query("UPDATE text_cms SET article_title = '$edited_title' WHERE article_id = '$id'") or die(mysql_error());
    	print "Updated <strong>$title</strong> in the database.<br />\n";
    }
    
    //check to see if body has changed, if changed, update db
    if ($article != $edited_article){
    	$db->query("UPDATE text_cms SET article = '$edited_article' WHERE article_id = '$id'") or die(mysql_error());
    	print "Updated <strong>article body</strong> in the database.<br />\n";
    }
    }
    ?>

     

    Try that and see what errors you get.

  2. I just found this on another website -

     

    The question mark indicates the start of the query string and the ampersand, &, symbol seperates variable=value assignments.

     

    ... but, what does the ; symbols do and when should it be brought into play?

  3. grimmier, your get example works, but I don't want it to keep the same page content up after a new query string is brought up, but instead take away what's there and just show the new include file without the old page... is this possible?

  4. Instead of making a new topic I thought I would continue in this one.

     

    I'm getting this error with the following code, and I don't see any problem with it, hopefully somebody else will.

     

    Error: Parse error: parse error, expecting `'('' in C:\Program Files\Apache Group\Apache2\htdocs\timetech\install.php on line 110

     

    Code:

    <?php
    mysql_close($mysql_connect) or die(mysql_error());
    } else if { // this is line 110
    	header("Location: install.php?mode=delete");
    	}
    ?>

  5. How is it that you get one page, say index.php, to contain content for multiple pages. Like - index.php?mode=register or index.php?mode=edit ... that being an example, I hope somebody see's what I'm getting at here. But how does a page use $_GET[''] based on the contents of the query string to determine what part of a page to display if it's all on one page?

  6. Well, for some reason my script throws an error like so - Table 'new_mps.mps_setup' doesn't exist - it hasn't always done this, and now it creates the database and tables and structure as well, but wont insert the post values like it used to. Does anyone see why my code is throwing an error. I'm not aware that I've even made any changes to it since the last time it was working fine. :|

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="styles/install.css" />
    <title>Install</title>
    <script type="text/javascript">
    function check_input() {
        if (document.setup_.site_name.value == "") {
          document.setup_.site_name.focus();
          alert("Please enter your site name.");
          return false;
        }
        if (document.setup_.site_url.value == "") {
          document.setup_.site_url.focus();
          alert("Please enter your site URL.");
          return false;
        }
        if (document.setup_.administration_username.value == "") {
          document.setup_.administration_username.focus();
          alert("Please enter your administration username.");
          return false;
        }
    if (document.setup_.administration_password.value == "") {
          document.setup_.administration_password.focus();
          alert("Please enter your administration password.");
          return false;
        }
    if (document.setup_.mysql_server_name.value == "") {
      document.setup_.mysql_server_name.focus();
      alert("Please enter your MySQL server name.");
      return false;
    }
    if (document.setup_.mysql_username.value == "") {
      document.setup_.mysql_username.focus();
      alert("Please enter your MySQL username.");
      return false;
    }
    if (document.setup_.mysql_password.value == "") {
      document.setup_.mysql_password.focus();
      alert("Please enter your MySQL password.");
      return false;
    }
    if (document.setup_.mysql_database_name.value == "") {
      document.setup_.mysql_database_name.focus();
      alert("Please enter your MySQL database name.");
      return false;
    }
    if (document.setup_.mysql_table_prefix.value == "") {
      document.setup_.mysql_table_prefix.focus();
      alert("Please enter your MySQL table prefix.");
      return false;
    }
        return true;
      }
    </script>
    </head>
    <?php
    if (isset($_POST['install'])) {
    
    $site_name = $_POST['site_name'];
    $site_url = $_POST['site_url'];
    $administration_username = $_POST['administration_username'];
    $administration_password = $_POST['administration_password'];
    $mysql_server_name = $_POST['mysql_server_name'];
    $mysql_username = $_POST['mysql_username'];
    $mysql_password = $_POST['mysql_password'];
    $mysql_database_name = $_POST['mysql_database_name'];
    $mysql_table_prefix = $_POST['mysql_table_prefix'];
    
    $mysql_connect = mysql_connect("$mysql_server_name", "$mysql_username", "$mysql_password") or die(mysql_error());
    
    mysql_query("CREATE DATABASE $mysql_database_name", $mysql_connect) or die(mysql_error());
    
    mysql_select_db("$mysql_database_name", $mysql_connect) or die(mysql_error());
    $create_setup = "CREATE TABLE ".$mysql_table_prefix."site
    (
    site_name varchar(255) not null,
    site_url varchar(255) not null,
    mysql_server_name varchar(255) not null,
    mysql_username varchar(255) not null,
    mysql_password varchar(255) not null,
    mysql_database_name varchar(255) not null,
    mysql_table_prefix varchar(255) not null,
    PRIMARY KEY(site_name)
    )";
    mysql_query($create_setup, $mysql_connect) or die(mysql_error());
    
    $create_login = "CREATE TABLE ".$mysql_table_prefix."login
    (
    ID int(11) not null auto_increment,
    username varchar(255) not null,
    password varchar(255) not null,
    access enum('administrator', 'employee') not null,
    PRIMARY KEY(ID)
    )";
    mysql_query($create_login, $mysql_connect) or die(mysql_error());
    
    $administration_password = md5($administration_password);
    $mysql_password = md5($mysql_password);
    
    mysql_query("INSERT INTO ".$mysql_table_prefix."setup (site_name, site_url, mysql_server_name, mysql_username, mysql_password, mysql_database_name, mysql_table_prefix)
    VALUES ('".$site_name."', '".$site_url."', '".$mysql_server_name."', '".$mysql_username."', '".$mysql_password."', '".$mysql_database_name."', '".$mysql_table_prefix."')") or die(mysql_error());
    
    mysql_query("INSERT INTO ".$mysql_table_prefix."login (username, password)
    VALUES ('".$administration_username."', '".$administration_password."')") or die(mysql_error());
    
    mysql_close($mysql_connect) or die(mysql_error());
    }
    ?>
    <body>
    <form name="setup_" onsubmit="return check_input()" action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
    <table id="install_main" border="0">
      <tr>
        <td class="install_title">Basic Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">Site name:<?php echo str_repeat(' ', 40); ?></td>
    <td><input type="text" name="site_name" size="60" value="" />
    <br /><div class="install_description">This is the name of your site, ie. "My Company Name".</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">Site URL:</td>
    <td><input type="text" name="site_url" size="60" value="http://<?php echo $_SERVER['HTTP_HOST']; echo dirname($_SERVER['PHP_SELF']) ?>" />
    <br /><div class="install_description">This is the URL to your site. In most cases, you can leave the default value in this box alone - it is usually right.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">Administration username:</td>
    <td><input type="text" name="administration_username" size="60" value="" />
    <br /><div class="install_description">This is the administrative username you would like to log in with.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">Administration password:</td>
    <td><input type="password" name="administration_password" size="60" value="" />
    <br /><div class="install_description">This is the administrative password to use with your username you chose above.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
      	<td class="install_title">MySQL Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">MySQL server name:</td>
    <td><input type="text" name="mysql_server_name" size="40" value="localhost" />
    <br /><div class="install_description">In most cases, you can leave this value as is.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">MySQL username:</td>
    <td><input type="text" name="mysql_username" size="40" value="" />
    <br /><div class="install_description">Fill in the username you use to connect to your MySQL database here.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">MySQL password:</td>
    <td><input type="password" name="mysql_password" size="40" value="" />
    <br /><div class="install_description">Here, put the password you use to connect to your MySQL database.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">MySQL database name:</td>
    <td><input type="text" name="mysql_database_name" size="40" value="" />
    <br /><div class="install_description">This is the name of the database you want to store data in. Setup will create the database if it does not already exist.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="install_type">MySQL table prefix:</td>
    <td><input type="text" name="mysql_table_prefix" size="40" value="" />
    <br /><div class="install_description">The prefix for every table in the database, ie. "prefix_". Do not use the same prefix in the same database.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td></td>
        <td><?php echo str_repeat(' ', 151); ?><input type="submit" name="install" value="Install" /></td>
      </tr>
    </table>
    </form>
    </body>
    </html>

  7. I'm sure that I will receive a wide variety of different opinions here, but what is the most reliable/stable versions of Apache, MySQL and PHP to use together up to date? And I'm quite sure that one is not better than another, or that there may be several combinations that are very stable, but is there any one combination that is more reliable at the moment?

  8. Well I've managed to narrow it down through trial and error, it's the PRIMARY KEY which is throwing it off resulting in no table being created. Does anyone see anything wrong with my table structure, especially the PRIMARY KEY?

  9. Why wont this work, it worked just fine when I used just one field and without underscores. It creates the database, but now it wont create the table. :|

     

    <?php
    if (isset($_POST['finish'])) {
    
    // basic setup variables
    
    $site_name = $_POST['site_name'];
    $site_url = $_POST['site_url'];
    $administration_username = $_POST['administration_username'];
    $administration_password = $_POST['administration_password'];
    
    // mysql setup variables
    
    $mysql_server_name = $_POST['mysql_server_name'];
    $mysql_username = $_POST['mysql_username'];
    $mysql_password = $_POST['mysql_password'];
    $mysql_database_name = $_POST['mysql_database_name'];
    $mysql_table_prefix = $_POST['mysql_table_prefix'];
    
    $mysql_connect = mysql_connect("$mysql_server_name", "$mysql_username", "$mysql_password") or die(mysql_error());
    
    mysql_query("CREATE DATABASE $mysql_database_name", $mysql_connect) or die(mysql_error());
    
    mysql_select_db("$mysql_database_name", $mysql_connect);
    $create_setup = "CREATE TABLE ".$mysql_table_prefix."setup
    (
    site_name tinytext not null,
    site_url tinytext not null,
    mysql_server_name tinytext not null,
    mysql_username tinytext not null,
    mysql_password tinytext not null,
    mysql_database_name tinytext not null,
    mysql_table_prefix tinytext not null,
    PRIMARY KEY(site_name)
    )";
    mysql_query($create_setup, $mysql_connect);
    
    mysql_close($mysql_connect);
    }
    ?>

  10. Can this be done --

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="setup.css" />
    <script type="text/javascript">
    function incomplete_field()
    {
    alert("You must complete all fields!");
    }
    </script>
    <title>Setup</title>
    </head>
    <?php
    if (isset($_POST['finish'])) {
    
    // basic setup variables
    
    $site_name = $_POST['site_name'];
    $site_url = $_POST['site_url'];
    $administration_username = $_POST['administration_username'];
    $administration_password = $_POST['administration_password'];
    
    // mysql setup variables
    
    $mysql_server_name = $_POST['mysql_server_name'];
    $mysql_username = $_POST['mysql_username'];
    $mysql_password = $_POST['mysql_password'];
    $mysql_database_name = $_POST['mysql_database_name'];
    $mysql_table_prefix = $_POST['mysql_table_prefix'];
    
    if (!$_POST['site_name'] | !$_POST['site_url'] | !$_POST['administration_username'] | !$_POST['administration_password'] | !$_POST['mysql_server_name'] | !$_POST['mysql_username'] | !$_POST['mysql_password'] | !$_POST['mysql_database_name'] | !$_POST['mysql_table_prefix']) {
    function incomplete_field()
    } else {
    
    $mysql_connect = mysql_connect("$mysql_server_name", "$mysql_username", "$mysql_password") or die(mysql_error());
    }
    }
    ?>

     

    The Javascript is there in the head. I'm wanting to use an alert box when any field is left blank. I get this error:

     

    Parse error: parse error, expecting `'{'' in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 34

     

    And line 34 is - } else {

  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="setup.css" />
    <title>Setup</title>
    </head>
    <?php
    if (isset($_POST['finish'])) {
    // basic setup variables
    $site_name = $_POST['site_name'];
    $site_url = $_POST['site_url'];
    $administration_username = $_POST['administration_username'];
    $administration_password = $_POST['administration_password'];
    // mysql setup variables
    $mysql_server_name = $_POST['mysql_server_name'];
    $mysql_username = $_POST['mysql_username'];
    $mysql_password = $_POST['mysql_password'];
    $mysql_database_name = $_POST['mysql_database_name'];
    $mysql_table_prefix = $_POST['mysql_table_prefix'];
    
    $mysql_connect = mysql_connect("$mysql_server_name", "$mysql_username", "$mysql_password") or die(mysql_error());
    }
    ?>
    <body>
    <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
    <table id="setup_main" border="0">
      <tr>
        <td class="setup_title">Basic Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Site name:<?php echo str_repeat(' ', 40); ?></td>
    <td><input type="text" name="site_name" size="60" value="" />
    <br /><div class="setup_description">This is the name of your site, ie. "My Company Name".</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Site URL:</td>
    <td><input type="text" name="site_url" size="60" value="http://<?php echo $_SERVER['HTTP_HOST']; echo dirname($_SERVER['PHP_SELF']) ?>" />
    <br /><div class="setup_description">This is the URL to your site. In most cases, you can leave the default value in this box alone - it is usually right.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Administration username:</td>
    <td><input type="text" name="administration_username" size="60" value="" />
    <br /><div class="setup_description">This is the administrative username you would like to log in with.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Administration password:</td>
    <td><input type="text" name="administration_password" size="60" value="" />
    <br /><div class="setup_description">This is the administrative password to use with your username you chose above.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
      	<td class="setup_title">MySQL Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL server name:</td>
    <td><input type="text" name="mysql_server_name" size="40" value="localhost" />
    <br /><div class="setup_description">In most cases, you can leave this value as is. Check with your server administrator should you need assistance with this value.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL username:</td>
    <td><input type="text" name="mysql_username" size="40" value="" />
    <br /><div class="setup_description">Fill in the username you use to connect to your MySQL database here.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL password:</td>
    <td><input type="text" name="mysql_password" size="40" value="" />
    <br /><div class="setup_description">Here, put the password you use to connect to your MySQL database.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL database name:</td>
    <td><input type="text" name="mysql_database_name" size="40" value="" />
    <br /><div class="setup_description">This is the name of the database you want to store data in. Setup will create the database if it does not already exist.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL table prefix:</td>
    <td><input type="text" name="mysql_table_prefix" size="40" value="" />
    <br /><div class="setup_description">The prefix for every table in the database, ie. "prefix_". <b>Do not use the same prefix in the same database.</b></div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td></td>
        <td><?php echo str_repeat(' ', 151); ?><input type="submit" name="finish" value="Finish" /></td>
      </tr>
    </table>
    </form>
    </body>
    </html>

     

    That is what I came up with now, and it works great. Thanks for all the help guys! :)

  12. :P I'm not on that level of technicality just yet, half of that I don't quite understand.

     

    But! I do have an issue here, hopefully somebody can point out a quick fix or suggest something.

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="setup.css" />
    <title>Setup</title>
    </head>
    <?php
    // basic setup variables
    $site_name = mysql_real_escape_string($_POST['site_name']);
    $site_url = mysql_real_escape_string($_POST['site_url']);
    $administration_username = mysql_real_escape_string($_POST['administration_username']);
    $administration_password = mysql_real_escape_string($_POST['administration_password']);
    // mysql setup variables
    $mysql_server_name = mysql_real_escape_string($_POST['mysql_server_name']);
    $mysql_username = mysql_real_escape_string($_POST['mysql_username']);
    $mysql_password = mysql_real_escape_string($_POST['mysql_password']);
    $mysql_database_name = mysql_real_escape_string($_POST['mysql_database_name']);
    $mysql_table_prefix = mysql_real_escape_string($_POST['mysql_table_prefix']);
    
    $mysql_connect = mysql_connect("$mysql_server_name", "$mysql_username", "$mysql_password") or die(mysql_error());
    ?>
    <body>
    <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
    <table id="setup_main" border="0">
      <tr>
        <td class="setup_title">Basic Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Site name:<?php echo str_repeat(' ', 40); ?></td>
    <td><input type="text" name="site_name" size="60" value="" />
    <br /><div class="setup_description">This is the name of your site, ie. "My Company Name".</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Site URL:</td>
    <td><input type="text" name="site_url" size="60" value="http://<?php echo $_SERVER['HTTP_HOST']; echo dirname($_SERVER['PHP_SELF']) ?>" />
    <br /><div class="setup_description">This is the URL to your site. In most cases, you can leave the default value in this box alone - it is usually right.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Administration username:</td>
    <td><input type="text" name="administration_username" size="60" value="" />
    <br /><div class="setup_description">This is the administrative username you would like to log in with.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">Administration password:</td>
    <td><input type="text" name="administration_password" size="60" value="" />
    <br /><div class="setup_description">This is the administrative password to use with your username you chose above.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
      	<td class="setup_title">MySQL Setup</td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL server name:</td>
    <td><input type="text" name="mysql_server_name" size="40" value="localhost" />
    <br /><div class="setup_description">In most cases, you can leave this value as is. Check with your server administrator should you need assistance with this value.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL username:</td>
    <td><input type="text" name="mysql_username" size="40" value="" />
    <br /><div class="setup_description">Fill in the username you use to connect to your MySQL database here.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL password:</td>
    <td><input type="text" name="mysql_password" size="40" value="" />
    <br /><div class="setup_description">Here, put the password you use to connect to your MySQL database.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL database name:</td>
    <td><input type="text" name="mysql_database_name" size="40" value="" />
    <br /><div class="setup_description">This is the name of the database you want to store data in. Setup will create the database if it does not already exist.</div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td class="setup_type">MySQL table prefix:</td>
    <td><input type="text" name="mysql_table_prefix" size="40" value="" />
    <br /><div class="setup_description">The prefix for every table in the database, ie. "prefix_". <b>Do not use the same prefix in the same database.</b></div></td>
      </tr>
      <tr>
        <td><?php echo str_repeat(' ', 1); ?></td>
      </tr>
      <tr>
        <td></td>
        <td><?php echo str_repeat(' ', 151); ?><input type="submit" name="finish" value="Finish" /></td>
      </tr>
    </table>
    </form>
    </body>
    </html>

     

    There is the code, and here is the error output in my browser.

     

     

    Notice: Undefined index: site_name in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 10

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 10

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 10

     

    Notice: Undefined index: site_url in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 11

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 11

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 11

     

    Notice: Undefined index: administration_username in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 12

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 12

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 12

     

    Notice: Undefined index: administration_password in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 13

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 13

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 13

     

    Notice: Undefined index: mysql_server_name in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 15

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 15

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 15

     

    Notice: Undefined index: mysql_username in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 16

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 16

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 16

     

    Notice: Undefined index: mysql_password in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 17

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 17

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 17

     

    Notice: Undefined index: mysql_database_name in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 18

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 18

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 18

     

    Notice: Undefined index: mysql_table_prefix in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 19

     

    Warning: mysql_real_escape_string(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 19

     

    Warning: mysql_real_escape_string(): A link to the server could not be established in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 19

     

    Warning: mysql_connect(): Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\mps\setup\setup.php on line 21

    Access denied for user: 'ODBC@localhost' (Using password: NO)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.