473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

insert special characters into ms acess database ?

how to insert special characters into ms acess database along with text below is my example
Expand|Select|Wrap|Line Numbers
  1. <!--#include file="common.asp"-->
  2. <!--#include file="header.asp"-->
  3. <%
  4. CheckAdminLogin
  5. if request("submit")="Save" then
  6. OpenDataBase conn
  7. newshead=request("newshead")
  8. newsdes=request("newsdes")
  9.  
  10. if newshead="" or newsdes="" then er=er & "<font color='red' size=4>Headline Cannot be blank</font>"
  11. if er="" then
  12. sql="insert into news(news_titile,news_description) values('" & cstr(newshead) & "' , '" & cstr(newsdes) & "')" 
  13. 'sql="insert into news(news_titile,news_description) values('" & Cstr(newshead) & "','" & Cstr(newsdes) & "' ) "
  14. conn.execute sql
  15. response.write("<font color='green' size=4>News and Top News is Stored Sucessfully</font>")
  16. response.Redirect("addheadlineimage.asp")
  17. else 
  18. response.write er
  19. end if 
  20. end if
  21. if request("submit")="addmore images to previous headlines" then
  22. response.Redirect("listnewsheadline.asp")
  23. end if
  24.  
  25. %>
  26. <form name="addleftnews" action="addleftnews.asp" method="post">
  27. <table align="left"  >
  28. <tr>
  29. <td><a href="listnewsheadline.asp">Add More Images to Previous Headlines</a></td>
  30. </tr>
  31. </table>
  32.  
  33. <table align="center">
  34. <tr><td> HeadLine </td><td><textarea name="newshead" cols="50" rows="2"></textarea></td></tr>
  35. <tr><td> Description</td><td><textarea name="newsdes" cols="50" rows="15"></textarea></td></tr>
  36. <tr><td></td>
  37. <td align="center" bgcolor="#FFFFFF">
  38. <input type="submit" name="submit" value="Save">
  39. </td>
  40.  
  41. </tr>
  42. </table>
  43.  
  44. </form>
Apr 8 '10 #1
1 2880
jhardman
3,406 Expert 2GB
which special characters are giving you trouble? Is it that you are saving HTML encoding?

Jared
Apr 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Barry Olly | last post by:
Hi, I'm working on a mini content management system and need help with dealing with special characters. The input are taken from html form which are then stored into a varchar column in...
11
by: anony | last post by:
Hello, I can't figure out why my parameterized query from an ASP.NET page is dropping "special" characters such as accented quotes & apostrophes, the registered trademark symbol, etc. These...
0
by: minhadd | last post by:
Hello Would Anyone help me ?? I want insert into Microsoft Acess visitor's IP by ASP. But It is not working ...
4
by: jcsnippets.atspace.com | last post by:
Hi everyone, Recently I have posted a question regarding special characters in text files. I was trying to read the text file to process the text later on, but I was using the wrong encoding....
3
by: Arielle | last post by:
Greetings! I'm using classic ASP and an insert statement to save bulletin messages to a database that can be updated or viewed later. At first I thought it worked perfectly so I took some sample...
2
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
1
by: technocraze | last post by:
Hi guys, I am having trouble resolving this error. Below mentioned is my code and implmentation. MS Acess is my front end and sql server is my backend. What i want to achieve is to be...
6
by: rn5a | last post by:
During registration, users are supposed to enter the following details: First Name, Last Name, EMail, UserName, Password, Confirm Password, Address, City, State, Country, Zip & Phone Number. I am...
6
by: TheRealDan | last post by:
Hi all. I'm having a problem with a special characters. I have php script that reads from an xml file and writes to a mysql db. It's a script called phptunest that I found on the net, although the...
2
by: riyap | last post by:
hi can anyone help me to simplify my logic in writing code, i have ms acess database table.i want to get the data from there(using select command with where clause) and insert into a stored...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.