jan-vandenberg / cruddiy

No-code Bootstrap PHP CRUD generator
http://cruddiy.com
GNU Affero General Public License v3.0
253 stars 80 forks source link

Generated config.php file has the lines out of sequence. #10

Closed apmuthu closed 3 years ago

apmuthu commented 3 years ago

The config.php file that is generated has the db parameters after the hardcoded mysqli_connectstatement. The db parameters should be first set and they should be used in the mysqli_connectstatement.

apmuthu commented 3 years ago

The $db_server variable should be initialised to localhost instead of blank.

apmuthu commented 3 years ago

It should be like:

$db_server = 'localhost'; 
$db_name = 'MyDB'; 
$db_user = 'root'; 
$db_password = ''; 
$no_of_records_per_page = 10;

$link = mysqli_connect($db_server, $db_user, $db_password, $db_name);