|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Formatting database content
whats the most appropriate way of pre formating the text areas in a database. ie highlighting individual words with bold italics or colour etc, things that a style sheet cannot deal with. Do i just enter html into the field.
|
|
#2
|
|||
|
|||
|
Basically, yes.
If you are using a script to enter the information into your database, just be sure to ensure that the text is safe before adding it to your SQL statement. Of course, you should be doing that for all user supplied data. (In PHP, for example, use the addslashes function.) |
|
#3
|
||||
|
||||
|
And in perl, use placeholders in your DBI statements, which will automatically escape unsafe SQL values. No extra function required.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Formatting database content |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|