Question : Can someone show me a good PHP example of how to create a table with a few extra examples

I have been looking around for a while now on the web in search of a few good examples of how to create a table in PHP for a MySQL. database I saw this and it is a start.

CREATE TABLE table_name
(
column_name1 data_type,
column_name2 data_type,
column_name3 data_type,
....
)
What I really need is an example of small text data types, a large data type, a numeric example date example virtually every data type there is in the tool. Not all but the main ones.

I do not understand the difference in a Binary type either.

I think it could really help to have a date parameter or something to show how they inter face with some of the following types. Any support is greatly appreciated. Thank you. Here are some of the data types I could find.

 # CHAR( ) String with fixed length0 to 255 characters long.
 # VARCHAR( ) String with variable length,maximum from 0 to 255 characters
 # TINYTEXT String,maximum length of 255 characters.
 # TEXTA String,maximum length of 65535 characters (equivalent to MEMO)
 # BLOB Binary string,maximum length of 65535 characters.
 #  LONGTEXT A string with a maximum length of 4294967295 characters.
 #  LONGBLOB A string with a maximum length of 4294967295 characters.
 # INT Integer represented with four bytes, values  -2147483648  to 2147483647
 # BIGINT A large integer values –9223372036854775808 to 9223372036854775807
 # FLOAT  Small (single-precision) floating-point number
 # DATE Stores date
 # TIME Stores  time

Answer : Can someone show me a good PHP example of how to create a table with a few extra examples

dear friend go to w3schools.com and got the free lesson of your query there is many Essy  lesson for u.
Random Solutions  
 
programming4us programming4us