<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021746" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021746</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134316</link>
    <description> &lt;p&gt;well. i found the dates for regular zodiac. now i need to know the order for chinese zodiac. i know 79 was ram and 74 was tiger, and it&#039;s a 12 yr cycle, but that&#039;s all.once i know them all, the order and have a year to use as a calculating opint (hmmm... 1979?) then i can create a function for it like i did regular zodiac...&lt;/p&gt;
&lt;p&gt;function findRZodiac($month, $day){ #finds regular zodiac&lt;br /&gt;
  if((($month==1)&amp;amp;&amp;amp;($day&amp;gt;19))||($month==2)&amp;amp;&amp;amp;($day&amp;lt;19)){&lt;br /&gt;
    return &#039;Aquarius&#039;; # January 20 - February 18&lt;br /&gt;
  }elseif((($month==2)&amp;amp;&amp;amp;($day&amp;gt;18))||($month==3)&amp;amp;&amp;amp;($day&amp;lt;21)){&lt;br /&gt;
    return &#039;Pisces&#039;; # February 19 - March 20&lt;br /&gt;
  }elseif((($month==3)&amp;amp;&amp;amp;($day&amp;gt;20))||($month==4)&amp;amp;&amp;amp;($day&amp;lt;20)){&lt;br /&gt;
    return &#039;Aries&#039;; # March 21 - April 19&lt;br /&gt;
  }elseif((($month==4)&amp;amp;&amp;amp;($day&amp;gt;19))||($month==5)&amp;amp;&amp;amp;($day&amp;lt;21)){&lt;br /&gt;
    return &#039;Taurus&#039;; # April 20 - May 20&lt;br /&gt;
  }elseif((($month==5)&amp;amp;&amp;amp;($day&amp;gt;20))||($month==6)&amp;amp;&amp;amp;($day&amp;lt;22)){&lt;br /&gt;
    return &#039;Gemini&#039;; # May 21 - June 21&lt;br /&gt;
  }elseif((($month==6)&amp;amp;&amp;amp;($day&amp;gt;21))||($month==7)&amp;amp;&amp;amp;($day&amp;lt;23)){&lt;br /&gt;
    return &#039;Cancer&#039;; # June 22 -July 22&lt;br /&gt;
  }elseif((($month==7)&amp;amp;&amp;amp;($day&amp;gt;22))||($month==8)&amp;amp;&amp;amp;($day&amp;lt;23)){&lt;br /&gt;
    return &#039;Leo&#039;; # July 23 - August 22&lt;br /&gt;
  }elseif((($month==8)&amp;amp;&amp;amp;($day&amp;gt;22))||($month==9)&amp;amp;&amp;amp;($day&amp;lt;23)){&lt;br /&gt;
    return &#039;Virgo&#039;; # August 23 - September 22&lt;br /&gt;
  }elseif((($month==9)&amp;amp;&amp;amp;($day&amp;gt;22))||($month==10)&amp;amp;&amp;amp;($day&amp;lt;23)){&lt;br /&gt;
    return &#039;Libra&#039;; # September 23-October 22&lt;br /&gt;
  }elseif((($month==10)&amp;amp;&amp;amp;($day&amp;gt;22))||($month==11)&amp;amp;&amp;amp;($day&amp;lt;22)){&lt;br /&gt;
    return &#039;Scorpio&#039;; # October 23 - November 21&lt;br /&gt;
  }elseif((($month==11)&amp;amp;&amp;amp;($day&amp;gt;21))||($month==12)&amp;amp;&amp;amp;($day&amp;lt;22)){&lt;br /&gt;
    return &#039;Sagittarius&#039;; # November 22 - December 21&lt;br /&gt;
  }elseif((($month==12)&amp;amp;&amp;amp;($day&amp;gt;21))||($month==1)&amp;amp;&amp;amp;($day&amp;lt;20)){&lt;br /&gt;
    return &#039;Capricorn&#039;; # December 22 -January 19&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;1900 works better since it&#039;s the earliest choice. infact, all i need then is to subtract 1900 from the year entered and then mod by 12.&lt;/p&gt;
&lt;p&gt;only question is, how can i set the year to &quot;please select&quot; or something like that when it&#039;s not chosen while using the forloop i have? this function gets the chinese zodiac perfectly:&lt;/p&gt;
&lt;p&gt;function findCZodiac($doby){&lt;br /&gt;
  $sign=($doby-1900)%12; # $doby (user&#039;s year of birth) - 1900 (earliest year choosable) mod 12 (# of signs)&lt;br /&gt;
  if($sign==0){ return &#039;Rat&#039;; }&lt;br /&gt;
  elseif($sign==1){ return &#039;Ox&#039;; }&lt;br /&gt;
  elseif($sign==2){ return &#039;Tiger&#039;; }&lt;br /&gt;
  elseif($sign==3){ return &#039;Rabbit&#039;; }&lt;br /&gt;
  elseif($sign==4){ return &#039;Dragon&#039;; }&lt;br /&gt;
  elseif($sign==5){ return &#039;Snake&#039;; }&lt;br /&gt;
  elseif($sign==6){ return &#039;Horse&#039;; }&lt;br /&gt;
  elseif($sign==7){ return &#039;Ram&#039;; }&lt;br /&gt;
  elseif($sign==8){ return &#039;Monkey&#039;; }&lt;br /&gt;
  elseif($sign==9){ return &#039;Rooster&#039;; }&lt;br /&gt;
  elseif($sign==10){ return &#039;Dog&#039;; }&lt;br /&gt;
  elseif($sign==11){ return &#039;Pig&#039;; }&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Fri, 11 Jul 2003 00:27:54 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1134316 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134060</link>
    <description> &lt;p&gt;when i was writing it up a friend of mine linked me to a johnson &amp;amp; johnson page asking me which color contacts she should get. i figured most of them can be abbreviated.. and there was a wider selection than i&#039;d have ever considered. but yeah, i see the point with eye color.&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2003 17:15:20 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1134060 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134049</link>
    <description> &lt;p&gt;In the case of integer fields, the number in parenthesis does not effect the capacity of the field.  That number simply indicates the maximum display size, which is really ignored unless you also define the field as ZEROFILL.&lt;/p&gt;
&lt;p&gt;A tinyint is 1 byte. Unsigned, thats 256 max.&lt;br /&gt;
A smallint is 2 bytes. Unsigned, 65535.&lt;br /&gt;
(mediumint = 3 bytes, int = 4 bytes, and bigint = 8 bytes)&lt;/p&gt;
&lt;p&gt;I changed `user_stats.city` from varchar(100) to varchar(50) because really, how many city names do not fit in 50 chars?&lt;/p&gt;
&lt;p&gt;I changed `user_stats.religion` from varchar(100) to smallint(50) because I figured a select box would suffice for a list of religions.  A 2 byte integer field will allow you to store the index of up to 65,535 different religions.&lt;/p&gt;
&lt;p&gt;I noticed on your form, that you have a select box for hair color but not eye color.  Why not for eye color?  You could store that in an integer field as well.  If you would settle for a 265 color selection, you could store the index in a tinyint field.  That&#039;s 1 byte opposed to a possible 10 bytes with varchar(10).&lt;/p&gt;
&lt;p&gt;I didn&#039;t change state/province to a integer field because I doubt everyone will live within the US.  And allowing them to enter the text manually is easier than acquiring a list of all states/provinces world-wide.&lt;/p&gt;
&lt;p&gt;I changed the tinytext fields in `user_interests` to text fields because tinytext is only 256 bytes, whereas text is 65,535 bytes.&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2003 02:47:58 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1134049 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134045</link>
    <description> &lt;p&gt;there&#039;s a couple you have varchar(50) when i know at least one i use html to limit it to 100 characters. &lt;/p&gt;
&lt;p&gt;i was wondering why the varchar is set to 50 there. and for weight i noticed you have tinyint(3) unsigned. even though i doubt anyone weighing over 1000 lbs would want to be on a site like this, since it is possible to have  a 4 digit weight, should it not be tinyint(4) unsigned?&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2003 02:15:15 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1134045 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134036</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by m3rajk &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;i&#039;m looking at the others you&#039;ve switched to ints to use index numbers and am wondering...&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Which fields did you have questions on?&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Jul 2003 17:27:54 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1134036 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134034</link>
    <description> &lt;p&gt;Mark- thank you. you&#039;re the first person at any of the three forums i&#039;ve found that has people that do thisstuff to respond. also this happens to be the last one i found. &lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: I&#039;ve missed some other fields here and there. I either missed them, or didn&#039;t understand their use. I also didn&#039;t look over the forum tables. I&#039;d suggest you acquire some forum software, and try to tie in your project&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;i&#039;ve updated mocst of them based on what you said because i agree, i&#039;m looking at the others you&#039;ve switched to ints to use index numbers and am wondering on some if it might help you to see the sign up preview on the webspace i&#039;ll be losing at the end of july where which i&#039;ve been using to create possible design and such based on what those i&#039;m working with have been telling me.&lt;/p&gt;
&lt;p&gt;we&#039;re going to use one of the versions of the preview 6 set of profiles. we haven&#039;t decided which one because everyone has a different idea for where the rating bar should go and we haven&#039;t had a chance to sit down and talk it over, but here&#039;s the profile as of now:&lt;br /&gt;
&lt;a href=&quot;http://people.brandeis.edu/~m3rajk/JMT/preview/preview-profile6a.html&quot; class=&quot;bb-url&quot;&gt;http://people.brandeis.edu/~m3rajk/JMT/preview/preview-profile6a.html&lt;/a&gt;&lt;br /&gt;
and here&#039;s the sign up with some debugging stuff as we&#039;re trying to get it to validate. it loses step when you get to step 4. for some reason it&#039;s not being passed. that has been happeneing since i added the max upload size (we haven&#039;t test uploads because we&#039;re waiting to get the validation to work. we&#039;re not sure we&#039;d be able to on there).&lt;br /&gt;
&lt;a href=&quot;http://people.brandeis.edu/~m3rajk/JMT/preview/phpprev/signup.php&quot; class=&quot;bb-url&quot;&gt;http://people.brandeis.edu/~m3rajk/JMT/preview/phpprev/signup.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the reason we&#039;re not downloading phpbb invasion or one of the other boards is because this is an attempt to show off what i was able to do with php/mysql. so i want the entire thing to be my creation.&lt;/p&gt;
&lt;p&gt;getting the forums up is secondary to getting the profiles working. we also haven&#039;t talked much about the messaging system. we all agree we want one, but one likes the version with mail and pop up alerts, the other person i&#039;m working with like seperate mail and &quot;instant messages&quot; that pop up. they both have advantages and disadvantages in practice. i&#039;m leaning toward the mail and pop ups since i think it would be easier. but the priority we decided on was profiles, forums, messaging system. so i&#039;ve put the messaging system off and started looking at forums since i&#039;ve seen they are definitely the lifeblood of a site&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Jul 2003 16:50:07 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1134034 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/seeking-table-organization-advice#comment-1134011</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;CREATE TABLE users (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `username` varchar(15) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `password` varchar(16) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `email` varchar(50) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `access_mask` smallint(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `approved` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `last_login` datetime NOT NULL default &amp;#039;0000-00-00 00:00:00&amp;#039;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMARY KEY&amp;nbsp; (`uid`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIQUE KEY `username` (`username`)&lt;br /&gt;) TYPE=MyISAM&lt;br /&gt;&lt;br /&gt;CREATE TABLE sessions (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `session_id` varchar(40) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `session_ip` varchar(15) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `login` datetime NOT NULL default &amp;#039;0000-00-00 00:00:00&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `last_action` datetime NOT NULL default &amp;#039;0000-00-00 00:00:00&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `last_location` varchar(50) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `uid` (`uid`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `session` (`session_ip`,`session_id`)&lt;br /&gt;) TYPE=HEAP;&lt;br /&gt;&lt;br /&gt;CREATE TABLE user_stats (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `dob` date NOT NULL default &amp;#039;0000-00-00&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `gender` char(1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `sex_pref` char(3) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `marital` char(1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `smoker` char(1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `drinker` char(1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `origin` varchar(50) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `height` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `waist` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `eyes` varchar(10) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `hair` varchar(10) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `weight` smallint(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `body` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `edu` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `employment` tinyint(3) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `religion` smallint(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `ethnic` smallint(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `city` varchar(50) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `state` varchar(30) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `self_cat` smallint(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `aim` varchar(16) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `icq` int(5) unsigned NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `mirc` charchar(20) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `msn` varchar(50) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `yim` varchar(20) NOT NULL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMARY KEY (`uid`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `dob` (`dob`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `gender` (`gender`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `sex_pref` (`sex_pref`),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY `marital` (`marital`),&lt;br /&gt;) TYPE=MyISAM&lt;br /&gt;&lt;br /&gt;CREATE TABLE user_bio (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `bio1` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `bio2` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `bio3` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `bio4` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMARY KEY (`uid`),&lt;br /&gt;) TYPE=MyISAM&lt;br /&gt;&lt;br /&gt;CREATE TABLE user_interests (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `movies` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `books` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `music` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `pets` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `sports` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `other` text NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMARY KEY (`uid`),&lt;br /&gt;) TYPE=MyISAM&lt;br /&gt;&lt;br /&gt;CREATE TABLE user_friends (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `uid` int(10) unsigned NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `fid` int(10) unsigned NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `comment` tinytext NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMARY KEY (`uid`,`fid`),&lt;br /&gt;) TYPE=MyISAM&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;TINYTEXT is only 256 characters.  That&#039;s not big enough for several of the places where you indicated use.  A TEXT field is 64KB, and a MEDIUMTEXT is 16MB.&lt;/p&gt;
&lt;p&gt;I&#039;ve substituted numeric fields where you had character fields in several areas.  An example is `users.approved`.  You indicated 3 switches.  Instead of using a character field, wich may take up to 3 bytes to store your data, consider using a single byte tinyint field.  1 byte has 8 bits.  Thats 8 switches.  So, byte zero = &#039;entire profile&#039;, byte one = &#039;bio&#039;, and byte two = &#039;pics&#039;.&lt;/p&gt;
&lt;p&gt;I only have one `dob` field.  This is because you can store everything in one field.  If you want to query only the month, you can use MySQL functions in your query to return only the month.&lt;/p&gt;
&lt;p&gt;`user_stats.gender` can be indicated by a single characer: m,f&lt;/p&gt;
&lt;p&gt;`user_stats.height` can be stored in one field by converting feet to inches before storing in the database.  This will also make it easier to select a range later.&lt;/p&gt;
&lt;p&gt;`user_stats.body` only needs to hold the select menu&#039;s index number, not the text.&lt;/p&gt;
&lt;p&gt;I completely removed the &#039;chinese zodiac&#039; and &#039;regular zodiac&#039; because knowing the user&#039;s DOB, you can come up with it.&lt;/p&gt;
&lt;p&gt;ICQ numbers don&#039;t fit in smallint fields.  They actually take a 4 byte integer.&lt;/p&gt;
&lt;p&gt;I&#039;ve missed some other fields here and there.  I either missed them, or didn&#039;t understand their use.  I also didn&#039;t look over the forum tables.  I&#039;d suggest you acquire some forum software, and try to tie in your project.&lt;/p&gt;
&lt;p&gt;MySQL Docs:&lt;br /&gt;
&lt;a href=&quot;http://www.mysql.com/doc/en/Column_types.html&quot; class=&quot;bb-url&quot;&gt;6.2 Column Types&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Jul 2003 19:17:09 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1134011 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
