About phpMyAdmin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: About phpMyAdmin (
/showthread.php?tid=233356)
About phpMyAdmin - Unknown123 - 01.03.2011
When i create a database 'phpMyAdmin'.. Then i have to type in some info... Like this:
Field:----------Type:----------Length/Values:
Username
------VARCHAR
-------24
AdminLevel
-----INT
------------1
Then so on...
Then my question is:
- How do i know the the "Type"?
- How do i know the the "Length/Values"?
Can someone explain me?
Re: About phpMyAdmin -
vital2k - 01.03.2011
The type is the values you expect to put in. Varchar is any type of character and INT is integer also known as a number. The length/values is the maximum length you expect the data to be input.
http://help.scibit.com/mascon/mascon...eld_Types.html
Re: About phpMyAdmin - Unknown123 - 01.03.2011
Quote:
Originally Posted by vital2k
|
So if i want to add "Warning"... Thn it should be like this?
Field:----------Type:----------Length/Values:
Warning
--------INT
------------1
Why did i use "INT"? Because it is an integer.
Why did i use "1"? Yes, why did i use "1"? LoL
Please correct me :P
English isnt my main language and my english isnt good so it is harder sor me to understand xD
Re: About phpMyAdmin -
CJ101 - 01.03.2011
Yes, however depending on how big your int is you should look into using TINYINT, SMALLINT or MEDIUMINT
Re: About phpMyAdmin - Unknown123 - 01.03.2011
Thanks