File "custom_function.php"

Full path: /home/fsibplc/public_html/fsib/accountOpening-v2/custom_function.php
File size: 364 B (364 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php
function get_table_data_by_column_oop($conn, $table_name, $column_name, $where_param1_name, $where_param1_value)
{
	$sql_select = "SELECT $column_name FROM $table_name WHERE $where_param1_name='$where_param1_value'";
	$select_result = $conn->query($sql_select);
	while($rows = $select_result->fetch_assoc())
	{
		return $rows[$column_name];
	}
}
?>