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: - strSQL = "INSERT INTO tbl_calendar ([schDate],[shift_time],[shift_type],[special_events],[other_hours],[employee]) VALUES ('"&strSchedDate&"',"&_
-
"'"&rplStringIn(Request.Form("shift_time"))&"','" & rplStringIn(Request.Form("shift_type"))&"','" & rplStringIn(Request.Form("special_events")) & "','"&rplStringIn(Request.Form("other_hours"))&"','" & rplStringIn(Request.Form("employee"))&"')"
-
Here is the code inserting from the database to the website: -
<td style="background-color:<%= strColor3 %>;color:<%= strColor6 %>" width="15%" align="center" valign="middle"><%= rplStringOut(rsCal("shift_time")) %> <%= rplStringOut(rsCal("other_hours")) %></td>
-
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!
1 1741
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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"...
|
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
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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,...
|
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...
| |