473,405 Members | 2,379 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,405 software developers and data experts.

Removing commas after posting data to database

1
I am new to ASP. I am using the free ezscheduler asp program to create a calendar for my website. The idea is for employees to schedule their work shifts online. I have modified some of the programmin from its original format.

Here is my problem. The information that people enter are going into a database as comma delimited. When the information is pulled from the database and placed on the website it leaves the commas from the fields. I do not want the commas.

Here is the code inserting into database:
Expand|Select|Wrap|Line Numbers
  1.     strSQL = "INSERT INTO tbl_calendar ([schDate],[shift_time],[shift_type],[special_events],[other_hours],[employee]) VALUES ('"&strSchedDate&"',"&_
  2.              "'"&rplStringIn(Request.Form("shift_time"))&"','" & rplStringIn(Request.Form("shift_type"))&"','" & rplStringIn(Request.Form("special_events")) & "','"&rplStringIn(Request.Form("other_hours"))&"','" & rplStringIn(Request.Form("employee"))&"')"
  3.  
Here is the code inserting from the database to the website:
Expand|Select|Wrap|Line Numbers
  1. <td style="background-color:<%= strColor3 %>;color:<%= strColor6 %>" width="15%" align="center" valign="middle"><%= rplStringOut(rsCal("shift_time")) %> <%= rplStringOut(rsCal("other_hours")) %></td>
  2.  
Here is what shows up on the website:
7am-7pm, or 4pm-,7am,

Can someone show me how to remove these commas? I am very new to this and so please make the instructions simple for me to understand.

Thanks!
Jan 10 '08 #1
1 1741
jhardman
3,406 Expert 2GB
1- what type of db are you using

2- show the code for how the script opens the db (to show data, not to add data)

Jared
Jan 11 '08 #2

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

Similar topics

1
by: gotcha | last post by:
I would like to know if you can display only certain data into a field between commas or any other symbol without using the curshort feature. For example. I have the following. Part, A3472,...
6
by: David Sharp | last post by:
Once I've converted my floats to chars using STR, is there an easy way to put commas in separating the thousands. i.e. convert 53000000.12 to 53,000,000.12 I'm thinking I'll have to do it...
3
by: darren | last post by:
Hello, I am posting a html form to a php processing page, which produces a csv file from the form data. However if the user inputs a comma then it screws up my data. So i'd like to know how...
7
by: AES | last post by:
Encountered a URL containing a comma the other day -- the first time I've ever noticed that, so far as I can recall. It worked fine, however, and I gather commas are legal in URLs. Out of...
4
by: Drew | last post by:
I have a permission tracking app that I am working on, and I have made the insert page for it. I am having issues on how to prevent duplicates from getting entered. Currently the interface for...
4
by: Steve | last post by:
Hi, I have a table which contains records of user access and searches made within an application, this is a sample of the data: response for 101 results from database in 28906 ms I only...
4
by: striker | last post by:
I have a comma delimited text file that has multiple instances of multiple commas. Each file will contain approximatley 300 lines. For example: one, two, three,,,,four,five,,,,six one, two,...
3
by: Mike P | last post by:
I am trying to write a csv file to a database table, but the problem is that several fields have commas within them, so the code is reading the commas as the end of fields. My code is below. How...
14
by: Adrienne Boswell | last post by:
Although this is a client side issue, I am also posting to asp.general in case there is someway to do this only server side (which I would prefer). Here's my form: <form method="post"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.