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
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.
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
This looks like only a portion of the file so it is not possible to determine what your issues is.