• has7

    (@has7)


    basically i am trying to build a website like this
    https://www.eatthismuch.com/
    and being fairly new to this i cant figure out how to do this any help would be appericiated especially where i dont have to write code for this
    i am trying to make a page where client inserts information and gets back a randomized diet plan out of my recipe database

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter has7

    (@has7)

    If someone needs details its like there calories are calculate first and based on the result i want to pull random recipie(post) based on his calorie requirements and echo it on the calorie counting page
    Any plugin that can help me do this?

    bodypart

    (@bodypart)

    Hey has 7. I have also been rrying to do the same.

    There is no plugin at the moment that can do that (based on my research in the past 3 days).

    The viable way of doing it is to create a custom page template.

    For example in my case, I have created a custom page template and a dummy database TABLE in phpmyadmin under the wordpress database. The table O created has 4 columns and four rows with the first column consisting of names of persons and the other colums consists of their age, height and weight.

    My basic php script that reads and prints the results from the data base is;

    <?php
    $data = $wpdb->get_results("SELECT * FROM wp_happy");
    print_r($results);
    ?>

    The print results is used because the echo command returns “array”

    The challenge now is to extend the baseic code so that the user is dynamically given a response based on a choice on a given row or column.

    How does your code look like so far?

    Thread Starter has7

    (@has7)

    man em really bad with this coding stuff thats why i posted that somedy could help me out with this
    basically i am trying something with calculated field forms(fitness) and trying to add custom field search in relavannsi because some people had success with it in some other cases you seem to know a bit about coding why dont you checkout if we can work with this relvannsi and calculated field method

    Thread Starter has7

    (@has7)

    it can pull out some information and there is a custom field search option in relavannsi which can be tweaked a bit with coding please can u check it out?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘is there a plugin which can help me "get" and "post" from a page or database’ is closed to new replies.