|
-
Dec 11th, 2002, 04:22 PM
#1
Thread Starter
Hyperactive Member
MySQL Database
Hi guys,
One of the tables in my database has been set to LongText. I need to be able to add characters like £ and / so what do I need to change it to?
Ta.
-
Dec 12th, 2002, 07:32 AM
#2
Thread Starter
Hyperactive Member
Code:
[if (input_verification($description,"^[[:alnum:][:space:][:punct:]]+$")) {$error1=1;}
What do I need to add to this to include other characters?
-
Dec 12th, 2002, 01:54 PM
#3
Frenzied Member
longtext should take anything. if you change it just change it to TEXT or varcahr. but varchar is limited to 255 chars unlike TEXT.
-
Dec 12th, 2002, 02:25 PM
#4
Stuck in the 80s
I'm with phpman on this. I've never had a problem inserting any character into any type of text or char field.
-
Dec 12th, 2002, 06:22 PM
#5
Thread Starter
Hyperactive Member
The database is for shows, so it needs to be longtext for the long descriptions. Now I have to add the ticket prices after the description but I get an error if I use £.
-
Dec 12th, 2002, 06:44 PM
#6
Frenzied Member
change it to TEXT and see what it does.
I don't believe it is that it is erroring on, can you show us the error and the code to insert it?
besides what you have already posted.
-
Dec 12th, 2002, 10:18 PM
#7
Stuck in the 80s
Try inserting the ascii value for it, ie o or whatever it happens to be. The webpage will still display it as £.
-
Dec 13th, 2002, 07:17 AM
#8
Thread Starter
Hyperactive Member
Thanks Hobo, I used £ and it works fine.
phpman, if I change it to text what's the max number of characters it will take?
-
Dec 13th, 2002, 10:21 AM
#9
Frenzied Member
TEXT, I believe, will hold like 65K
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|