Globaly - Full Cycle Business Management & Consulting Responsive WordPress Theme 0) { while ($query_row = mysqli_fetch_assoc($query_run)) { $id = $query_row['id']; // Store the data in an associative array with $id as key $data[$id] = array( 'name' => $query_row['name'], 'surname' => $query_row['surname'], 'email' => $query_row['email'], 'birth_day' => $query_row['birth_day'], 'birth_month' => $query_row['birth_month'], 'birth_year' => $query_row['birth_year'] ); } } if(isset($_GET['search_text'])){ $search_text = $_GET['search_text']; } if(!empty($search_text)){ $con = mysqli_connect($mysql_host,$mysql_user,$mysql_pass); if(mysqli_select_db($con,$mysql_db)){ $query = "SELECT `name`, `surname` FROM `globaly_accounts` WHERE `name` LIKE '". mysqli_real_escape_string($con,$search_text) ."%'"; $query_run = mysqli_query($con,$query); while($query_row = mysqli_fetch_assoc($query_run)){ $name = $query_row['name'] ; echo $name . ' ' .$query_row['surname'] . '
' ; } } } ?>

Meet

the Main Team

' . $data[1]['birth_day'] . '.' . $data[1]['birth_month'] . '.' . $data[1]['birth_year'] . '.'; ?>

' . $data[2]['birth_day'] . '.' . $data[2]['birth_month'] . '.' . $data[2]['birth_year'] . '.'; ?>

' . $data[3]['birth_day'] . '.' . $data[3]['birth_month'] . '.' . $data[3]['birth_year'] . '.'; ?>

' . $data[4]['birth_day'] . '.' . $data[4]['birth_month'] . '.' . $data[4]['birth_year'] . '.'; ?>

' . $data[5]['birth_day'] . '.' . $data[5]['birth_month'] . '.' . $data[5]['birth_year'] . '.'; ?>

' . $data[6]['birth_day'] . '.' . $data[6]['birth_month'] . '.' . $data[6]['birth_year'] . '.'; ?>

Meet

Others

"; // Combine key and value for birth date into a formatted string $birthDate = "{$data[$id]['birth_day']}.{$data[$id]['birth_month']}.{$data[$id]['birth_year']}."; echo ""; echo ""; echo ""; echo ""; echo ""; } else { echo ""; } } ?>
Name Surname Email Birth Date
{$data[$id]['name']}{$data[$id]['surname']}{$data[$id]['email']}$birthDate
No data found for ID $id