query($query_login)->num_rows > 0){ $result = $con->query($query_login); $result_fetch = $result->fetch_assoc(); $_SESSION['user_id'] = $result_fetch['id']; $_SESSION['name'] = $result_fetch['name']; header('Location: input_info.php'); }else{ echo "Invalid user or password"; } } else{ echo "Fill up the Fields first"; } } if (isset($_POST['reg_submit'])){ if (!empty($_POST['name']) && !empty($_POST['email_i']) && !empty($_POST['user_name_i']) && !empty($_POST['user_password']) && !empty($_POST['gender']) && !empty($_POST['age']) && !empty($_POST['weight']) && !empty($_POST['feet'])){ $name =$_POST['name']; $user_name = $_POST['user_name_i']; $email = $_POST['email_i']; $password = $_POST['user_password']; $gender = $_POST['gender']; $age = $_POST['age']; $weight = $_POST['weight']; $feet = $_POST['feet']; $inch = $_POST['inch']; if (empty($inch)){ $inch = 0; } $height = $feet.".".$inch; $query_register = "insert into user_account(name,email,user_name,password,age,weight,gender,height) VALUES('$name','$email','$user_name', '$password','$age','$weight','$gender','$height') "; if ($con->query($query_register)){ echo "register is success full"; } else{ echo "connection problem"; } } else{ echo "FILL UP ALL the Fields"; } } ?> HOME PAGE
Best Body Ever: What to Eat?


Put your diet on autopilot

Best Diet Chart creates personalized meal plans based on your food preferences, budget, and schedule. Reach your diet and nutritional goals with our calorie calculator, weekly meal plans, grocery lists and more.
Create your meal plan right here.

Eating smart has never been easier

The best nutrition strategy is the one that actually happens, because behaviors, not ideas, are the secret to changing your diet. Eat This Much makes meal planning simple, automatic, customizable, and most importantly, doable.


We created Best Diet Chart to save you time and energy while also giving you complete control over the meal planning process. Caloric and macro targets, recipes, grocery lists and a growing food database are all here to help you create your best meal plan.