ohdang888 Posted December 26, 2007 Share Posted December 26, 2007 ok. so i want to create a "related games" section, that will randomly pull 8 values from a table in my database. but first of all, whats the best way to create the table? make a "create a table" code and upload once, or manually create the table in PHPadmin??? Quote Link to comment https://forums.phpfreaks.com/topic/83242-solved-best-way-to-create-table/ Share on other sites More sharing options...
revraz Posted December 26, 2007 Share Posted December 26, 2007 What ever you prefer. If you have access to PHPMyAdmin, that would be easier. Quote Link to comment https://forums.phpfreaks.com/topic/83242-solved-best-way-to-create-table/#findComment-423449 Share on other sites More sharing options...
ohdang888 Posted December 26, 2007 Author Share Posted December 26, 2007 i'm confused as how to do it though. i've created a table called "test" i only want the name of the game to show.... so would i only create 1 field? and whats are attributes and collations? Quote Link to comment https://forums.phpfreaks.com/topic/83242-solved-best-way-to-create-table/#findComment-423450 Share on other sites More sharing options...
ohdang888 Posted December 26, 2007 Author Share Posted December 26, 2007 AND... is "length/values", the max amount of characters allowed in a field? Quote Link to comment https://forums.phpfreaks.com/topic/83242-solved-best-way-to-create-table/#findComment-423452 Share on other sites More sharing options...
revraz Posted December 26, 2007 Share Posted December 26, 2007 If you only want 1 field, then just create the one field, use a VARCHAR and the length is how many characters you want the field to be. Quote Link to comment https://forums.phpfreaks.com/topic/83242-solved-best-way-to-create-table/#findComment-423453 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.