Menu

Help with creating database please

Help
Herman
2008-12-20
2013-06-03
  • Herman

    Herman - 2008-12-20

    Hi,

    How do I correctly set up install.php with the correct database details (I'm getting form errors):
    Is the below correct and do I need to enter any other details in this file?

    **********************************************
        echo "Table created. ";

         $handle = fopen('config.inc.php', 'w');
        $content = "<?php
    \$db_host = \"" . $_POST['dbHostName'] . "\";";
        $content .= "\$db_user = \"seg_herman" . $_POST['dbUser'] . "\";";
        $content .= "\$db_pass = \"password" . $_POST['dbPassword'] . "\";";
        $content .= "\$db_name = \"seg_form" . $_POST['dbName'] . "\";";
        $content .= "\$db_table = \"table7" . $_POST['dbTable'] . "\";";
        $content .= "
    ?>";

    **************************************************

    Thank you

     
    • TNTEverett

      TNTEverett - 2008-12-25

      This looks like only a portion of the file so it is not possible to determine what your issues is. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.