corner image corner image
View Single Post
corner image corner image
  #1 (permalink)  
Old 29-07-2008, 14:05
UKSBD UKSBD is offline
A1 is my Second Home!
 
Join Date: Mar 2008
Location: Warwickshire
Posts: 359
Thanks: 2
Thanked 66 Times in 53 Posts
Default Adding coding in to default value of MySQL field?

Does anyone know how to add coding as a default value in a MySQL field?

I am trying to set a default value of an existing field, but the default value
I want to add is coding that includes * "" and !

I am using,
UPDATE `tbl_test` SET `newfield` = 'default value'

it works fine if the default value is plain text, but if I try to add the coding
as the default value, the last quotation mark gets removed resulting in an error.

Any help appreciated.

Just to add.
The site is in .ASP (php enabled) and I am trying to do it via phpmyadmin
__________________
UK Small Business Directory

A hen is for Christmas - Order now while stock lasts.

Last edited by UKSBD; 29-07-2008 at 14:06. Reason: adding a bit more info
Reply With Quote
corner image corner image
Sponsored Links

Register to remove these ads
corner image corner image