set_mysql_hostname
set_mysql_hostname
set_MYSQL_hostname($host = Configs::SRE__DEFAULT__HOST__)
Parameter | Description |
---|---|
$hostname | The hostname of your MYSQL connection. If omitted, the default value stored in your config file will be used. |
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->set_MYSQL_hostname("localhost")
->set_MYSQL_Connection_userName("my_user_name")
->set_MYSQL_Connection_password("my_password")
->set_MYSQL_db_name("my_db_name")
->select_all_fields();
$engine = new CustomEngine($report);
$report_path = $engine->create_report();