Page 1 of 1

link saving type

Posted: Thu Jul 19, 2007 9:31 am
by m2babaey
Hi
To save a link in a database, should i set the field type varchar or text?

Posted: Thu Jul 19, 2007 9:51 am
by Begby
varchar is limited to 255 characters. If you are sure your links will be less than that, then use that field. A text field can hold a lot more but has limitations in regards to indexing and searching.