Jump to content

Recommended Posts

Weight and food diary. 

 

2 input forms to insert weight and then for one to insert what they had to eat. 

 

i then wanting it to show on a calendar, 

<?php
  /**
   * Account
   *
   * @package Digital Downloads Pro
   * @author wojoscripts.com
   * @copyright 2010
   * @version $Id: account.php, v2.00 2011-07-10 10:12:05 gewa Exp $
   */
  define("_VALID_PHP", true);
  require_once("init.php");
  
  if (!$user->logged_in)
      redirect_to("login.php");


?> 
 
 <?php include("header.php");?> 
 
 
  <!-- ============= CONTENT AREA STARTS HERE ============== -->
        		<div id="content">
                
                		<!-- SLIDER STARTS HERE -->
						<div id="slider" class="slider2">
								<div >
										
								</div>
						  <h2 class="slider-head">Track your Weight</h2><br /><br />
						  <div id="whats-hot" > <p></p>

									</div>	<br /><br /><br />

	
			                <!-- end of news div --><!-- end of container div -->
 <div class="w-pet-border"> 
  <br /><br />
  
        <table style='background-color:E1E1E1; color:000000;font-family: Verdana; font-size: 7pt;'><tr><td colspan='8' align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='3' color='000'><b>May 2013</b></font></td></tr><tr><tr><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Sun</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Mon</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Tue</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Wed</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Thu</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Fri</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Sat</b></font></td><td align='center' style='background-color:9999cc; color:000000;'><font face='Verdana' size='2' color='000'><b>Weekly</b></font></td></tr><td style="background-color:ccccff; color:000000; width:75;height:100"> </td><td style="background-color:ccccff; color:000000; width:75;height:100"> </td><td style="background-color:ccccff; color:000000; width:75;height:100"> </td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>1<br>
              Breakfast <br />
Lunch<br />
Tea<br />
Other<br />
Weight<br/>Creon</td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>2<br>  <br></td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>3<br>  <br></td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>4<br>  <br></td><td align='left' valign='top' style='background-color:ffffcc; color:000000;' width='91' height='100'>  <br><br>
          Creon:  0<br />
Best Weight: 0<br />
lowest Weight: 0</td></tr><tr>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>5</td>
<td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>6</td>
<td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>7</td>
<td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>8</td>
<td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>9<br>  <br></td><td align='left' valign='top' style='background-color:ffffff; color:000000;' width='75' height='100'><p>10<br>
</p></td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>11<br>  <br></td><td align='left' valign='top' style='background-color:ffffcc; color:000000;' width='91' height='100'>  <br><br>
        Creon:  0<br>
        Best Weight: 0<br>
        lowest Weight: 0<br></td></tr><tr>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>12</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>13</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>14</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>15</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>16</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>17</td>
          <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>18</td><td align='left' valign='top' style='background-color:ffffcc; color:000000;' width='91' height='100'>  <br><br>
            Creon:  0<br />
Best Weight: 0<br />
lowest Weight: 0</td></tr><tr>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>19</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>20</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>21</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>22</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>23</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>24</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='75'>25</td><td align='left' valign='top' style='background-color:ffffcc; color:000000;' width='91' height='100'>  <br><br>
    Creon:  0<br />
Best Weight: 0<br />
lowest Weight: 0</td></tr><tr>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>26</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>27</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>28</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>29</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>30</td>
  <td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>31</td><td align='left' valign='top' style='background-color:ccccff; color:000000;' width='75' height='93'>  <br><br> <br> </td><td align='left' valign='top' style='background-color:ffffcc; color:000000;' width='91' height='93'>  <br>
      <br>
      Creon:  0<br />
      Best Weight: 0<br />
      lowest Weight: 0</td></tr></table>



 </div><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />

	
 Beta v2.0
 <?php include("footer.php");?> 

this is the weight database

 

id date day month year username weight_lb weight_kg notes email

 

this is the my_food database

 

id username date day month year meal content notes creon

 

open a new page where they can see the content they added of the meals ie, breakfast, lunch etc. and to total the creon intake up from that week... 

 

 

if anyone could help me.. please i need to get it all working within this month. due to my article is being published in the CF Trust magazine and they want all my website to be full functional 

Hi jessica Sorry.

 

Hum am after doing a personal food and weight tracker. I have it all working. But then the idea of instead of it being 2 things. I wanted to merge them into one. So all the data a user inputs. Gets showen in this calendar. Am struggling to know how I would get it to show

The breakfast, lunch dinner etc for the date it was posted on.

 

Www.cffoodtoday.com/Weight.php

Www.cffoodtoday.com/my_food.php

 

Username testing

Password testing1

With code.

 

We don't write code for you here. You have to make an attempt.

 

Your question is equivalent to asking someone "how do I use my computer?" There's a million questions following that. What kind of computer? Use it to do what? Etc etc

Am not asking you to write the code for me.. I have looked and searched and tested things all day. To a point where am struggling to know a way I can do this...

 

 

I am asking for help to make me understand that there is a way I can do it but I have no idea how! So am asking for an expert to point me in the right way to make it work!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.