Duplicating Dbase Entries In Seperate Dbases

I have a dbase containing login details for 21,000 members. I also have a
forum that I am about to implement.

When the user gets to the main site, he has to login (this is done by
checking his credentials against DB1) When he is logged in, all his details
are stored in session variables. Clicking on the forum link will take him to
the forum where he has to log-in or register. Currently, the forum checks
cookies to see if there is a valid name and password and then checks these
against it's own DB (herein called DB2) or requires the user to
login/register

I plan to modify the forum so that the login is bypassed and the forum
accepts the current session name and password as the login. (This is so that
all names on the site main site, chat, forum etc are uniform, i.e Dave47 in
a chat room, is Dave47 in the forum, is Dave47 in the members area etc)

so...what I need to do (if you're still with me) is.

When a new user registers on the main site, his details are put into DB1
*and* DB2. , can I have two data sources open at once?

The reason I need two DBs is that the information in DB1 is a lot less than
is needed by the forum in DB2.

Also how can I copy selected fields from DB1 (name, password for existing
users) into DB2? like I said..there's 21,000 and to do it manually would
take forever.

View Replies


ADVERTISEMENT

Pwd's In Dbases

What is the best way to store a pwd into a dbase? I guess it is hashing it. Read a lot regarding this issue to use md5 for it, but can i use AES for it also? And what is that salt thing doing? And then, there is more, What is the best way to request a login and pwd from a user (client level) without using https or ntlm or something like that, just a clean html / asp thing.

View Replies View Related

Duplicating A Record

Are there any built in functions for creating a duplicate record using ASP?

View Replies View Related

Re-writting For DBASE IV

I have stolen code from another thread in this forum that I am attempting to modify. The original code uses a Microsoft Access database file but I can't create one cos I don't have Microsoft Access. Instead I am using Microsoft Works to create a dBASE IV .dbf file.

This is the code i have attempted to use but it doesnt work. Code:

View Replies View Related

Seperate A String

I have a string called EmployeeName. This variable has the first and lastname of the employee.I would like to know if it is possible to extract the lastname into another variable for searching.

View Replies View Related

Seperate The Text

If I had a field which is let's say "123 Abc Street" and I would want to seperate the street number from the street name. I formulated this in excel:

=MID(A1,SEARCH(" ",A1,1)+1,LEN(A1)-SEARCH(" ",A1,1))

Where A1 is the cell...

Is the syntax the same in ASP?

Also I want to use this on a field called "Address" in my database, and then sort by the results of this formula. So could I do something like this:

SELECT * FROM Properties_tbl ORDER BY MID(Address,SEARCH(" ",Address,1)+1,LEN(Address)-SEARCH(" ",Address,1))

View Replies View Related

Seperate Page

Did anyone know how to do the seperate? when i search "aaa" keyword from database. and their is 100 result i want to seperate it to dispaly 20 result perpage. like the search engine 1.

View Replies View Related

How To Seperate The Listing In 2 Columns

I am working on a page which listing all product in one page, by should be in 2 column rather than just one.

PS: I can do show up all products in 1 column by do while not loo,...

can anyone reply with some simple asp code, just the code for seperate the listing in 2 column...

View Replies View Related

Dbase Remains Open

I am creating ASP pages which call for information from a database, however when I have completed the page in FP, exit, and go to Access to modify a Query, I am told the Database is still in use and that only "Shared access " is available.This does not happen if I reboot the computer.The page was generated by Access "HTML Wizard.I am using FP98 and W98.

View Replies View Related

Seperate City And State

I am trying to Seperate the City and State from one table row to another table row:
Field is name LANDMARK with valeus as Atlanta, GA

Want to get
City = Atlanta
State = GA

into two sperate fields

This is what I have

"STATE = "Right ("LANDMARK",2)"

View Replies View Related

Insterting Quotes Into A Dbase

How can you insert a quote ' or " into a database from a forum without getting an sql error due to the quotes closing, or opening a new field in the sql string.

View Replies View Related

Seperate That City And The State

I am trying to Seperate the City and State from one table row to another table row:

Field is name LANDMARK with valeus as Atlanta, GA

Want to get
City = Atlanta
State = GA

into two sperate fields

This is what I have

"STATE = "Right ("LANDMARK",2)"

View Replies View Related

Does Anybody Know How To Include A Seperate ASP File?

I just want to include a function in a seperate file so i can have it on a bunch of pages. What tag should i use?

View Replies View Related

Dbase And HTML Sorting

I have a Parks Database where anyone can see a complete list of parks we have. What I would like is for people to be able to sort this list by certain parameters, one of them being a "District" parameter, but could conceivably be parameters such as Sort By "Playground" to see a list of Parks with Playgrounds.

Is there a way for me to do this via some sort of hyperlink to the "District", that if it's clicked on, does a new form (Maybe a form named sortViaDistrict) within the same page? I'm not too sure how to do something like this. Code:

View Replies View Related

Database Queries, Seperate Asp Pages?

I want to have a page that has several links on it, each link will do a different search on a database. Now I know how I can achieve this using different pages. (a.asp b.asp c.asp etc etc for example) however i've noticed a lot of webpage that just use one search.asp page and then the id changes for example the address will be search.asp?id=1 for example, hope this makes sense.

View Replies View Related

ASP: Update Multiple Dbase Rows?

I've got a little user poll system and I'm trying to create an 'edit' form. The form relates to 2 database tables, one holds the poll details (title, start date, end date, etc) and the other holds the answers/options (answer_id, answer, etc). I've successfully setup the form so it updates the poll details but I can't work out how to update the answers? Code:

View Replies View Related

Export Dbase To An Excel File

It will export a database (Access) table to an Excel sheet.

Set rsC = Server.CreateObject("ADODB.Recordset")
rsC.Open "select * from CFL WHERE Emp_no = '"&empno&"'",myConn,1,3

'**** create excel file

Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=CFL.xls" .......

my script is working properly but i want to create another sheet of the Excel file because i will export multiple tables from the dtabase to an Excel file with multiple sheets. it only creates one sheet?

View Replies View Related

Read/write DBase IV Files

I've got to learn how to read/write dBase IV files fast. Please provide a good quick start / tutorial and / or some good links here.

View Replies View Related

Inserting Strings Into An Mssql Dbase

The scenario is that the user enters a description of a special offer into a text box and then can add that record to a database field using the insert method of asp. However, an error occurs if the description has any apostrophes in. For example,

special offer 1: andy's prize plums
could cause an error because the insert looks something like this

"insert into offersTable(offerDescription) values (' " & request.form("description") & "'"

is there some way to escape all naughty characters so they don't cause a problem. Any suggestions very welcome.

View Replies View Related

Storing Complete Dbase Conn In Application Object

I am currently working on a small asp application. Now I would like to store the complete database connection in the application object. Note I want to store the connection NOT the connectionstring. For that purpose I wrote a small asp include which connects to the dbase and stores the connection object to the application object. However when I use this include in my pages then it doesnt work. What I am doing wrong? Here is the code:

View Replies View Related

How To Show A List Of Values In A Seperate Line In Textarea?

I have a textarea that displays the values from the recordset. But how can I display each value in a seperate line

While not rsHires.EOF
Response.Write rsHires("Emp_Name") & "
"
rsHires.MoveNext
wend

I tried <br> too, but they get printed into the textarea.

View Replies View Related

Querying More Than 255 Characters From FoxPro/DBase Database Field

I've been tasked with integrating an older management system based on
DBF files with my snappy new ASP application to provide users of the
ASP application with real-time data from the management system.

I figure with DBF files, I should use either the DBase drivers or the
FoxPro drivers to connect to the database. Code:

View Replies View Related

Max Entries

i'm trying to limit the ammount of entries a user can put in the access database, here is my code:

View Replies View Related

Duplicate Entries

I have a problem with Insert statement. Though My SQL Statement executed once only, there are 2 records entered in DB. I am using ASP and SQL Server. Does anybody know the solution?

View Replies View Related

Client Entries

I want to validate client entries into textbox,checkbox
controls etc. can u do this with asp. Like, is there
onchange and onclick and so on for these controls?

View Replies View Related

Multiple DB Entries

A different question though. Is it possible to delete duplicate entries,
where the email address is the same, and only keep one?
i.e..
I got say 4 DB entries, all with the same email address, and I want to
delete 3. How do I do this?

View Replies View Related

Overwriting Entries

Does anyone know what sort of command I need to use so that if someone posts an entry to my database with a primary key that's already been used, the old entry is overwritten by the new one

View Replies View Related

Checking 2 Entries

Is there a way of checking whether two entries in a form are the same? Like when you have to enter your password in twice. I'm not actually sure whether it's asp. Sorry if I've posted in the wrong place.

View Replies View Related

Filter Multiple Entries

I have a database for projects. Some managers are responsible for multiple projects. I want to dynamically populate a list of project managers, choose a manager, and display a complete list of his/her projects. I have a few problems 1) I cannot figure out how to list a project manager's name only once in and 2) I don't have a clue how to compile all the projects for each manager so that when his/her name is chosen it will display all the records.

View Replies View Related

Highlighting New Entries In My Asp Table

I have setup a simple site in which users input data to an access database, and then the database results are shown on another page in a table. One of the fields in the databse is Date Added, using the date/time data type.

I would like the table to show new results with a different background colour for a period of time, say one week? Code:

View Replies View Related

Add Multiple DB Entries By Checkbox

There are a lot of references on the net on how to delete multiple entries in a database by using a checkbox. What I would like to do is add a checkbox to the output of a query (ie. bunch of names).

Then be able to select some of the names by clicking on a checkbox and when submitted, add those checked names to another database (insert). Similar to a shopping cart selecting multiple products but when submitted, it does not add them to the checkout, it adds them to a database as new inserts.

View Replies View Related

Updating Numerical Entries

I have made a forum script and I know this is very basic stuff but how do you go about updating a number with an increment of +1.

Access Database - Two Tables - Topic and Replies.

In Topic there is a column called replies. When a user views a topic there is a reply form at the bottom which is processed by reply.asp which add the information entered to the database in the replies field. Also added is subjectid to each reply so I can link the two together.

Either I want to be able to update the reply number in the topic table by +1 in the appropriate subject row (the id is passed on to the reply page) or count the number of alike subjectid's in replies to the subject in topics. What is the best way and how do I update numbers by +1.

View Replies View Related

Deleting Entries From Database

i have a registration form in my website. the requests are going to the database (windows 2003 small business server). I have an other page who the entries are displayied. how i can delete the each entry separately with a button?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved