Sql Pull Statement

Ok im trien to make a sql pull statement that pulls duplicates of item_name . can someone give me a hand with this.

View Replies


ADVERTISEMENT

Pull Down And Add

I know how to enter data to a SQL database from a form.

I am making a form where the user inputs some numbers.

Than other users login to this other place and I want the
number that the person imputed to be shown in a field
multipled at a certain price. I am unsure how to pull the
numbers down to display them and do the multiplcation.
The multiplication will show up in another place on the
page.

Does this make sense?

View Replies View Related

Pull Down Box

I am trying to create a pull down box with no button. I need a script that will allow passing one parameter from the sending page to a single template page (jetTemp.asp).
I found this script that I cannot get to work:

<html>
<form name="guideform">
<select name="guidelinks" onChange="window.location='jetTemp.asp?' + document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option selected value="PullDown.htm">--Choose--</option>
<option value="size=small">Small Jets</option>
<option value="size=medium">Medium Jets</option>
<option value="size=large">Large Jets</option>
</select>
</form>
</html>


I understand that I need a query in the target page to pickup the parameter.

View Replies View Related

Pull

I have a site that I am trying to pull a text file into from one of my sites on the WWW.

What I am trying to do is have an ASP file go out and every so offten pull a text file and save it to the local folder.Is this possible?

View Replies View Related

Pull Content

I'm writing a site scraper (bot, etc.) that needs to log into a site (i have the username and password), then redirect to a particular page and then pull that content into a variable so I can manipulate it.
I'm using ASPHttp to try to pull this off. However, I CANNOT get by the login. According to ASPHttp this should be possible, but I cannot make it happen. I would not imagine this would be too hard to do. Perhaps ASPHttp is not the right tool.

View Replies View Related

Pull Domain Out

http://www.google.com/search?biw=868&hl=en&q=http%3A%2F%2Fwww.dimplesanddandelions.com%2Ftest.asp&btnG=Google+Search

I get this result by using: Request.ServerVariables("HTTP_REFERER")

I'd like to pull the www.google.com out of it and save it as a session variable for conversion tracking. Is there an easy way do that using ASP?

View Replies View Related

Pull Last Record

I have a script that pulls certain details from a script and emails them to the user. However if a user has purchased something more than once there will be 2 records with the same email address and ovviously the first one will always be displyed.
How do I ensure that it is the last record of that email address that is pulled?

Code:

<%
dim conn
dim sql
dim sqlstring
Dim rsCheckUser, TransactionID
set conn=Server.CreateObject("ADODB.Connection")

View Replies View Related

Pull Out This Path

Does anyone know how I can do the following:

I have a url like so:

http://www.domainname.com/folder/subfolder/page.asp

I want to pull out as a variable the following

/folder/subfolder/

View Replies View Related

Pull Metadata

I'm receiving a resultset from a stored procedure & at other times a query from SQL Server.

I need to pull the metadata from the results that I receive. More specifically, I need to know if a field is a Float datatype. This will then determine how I display the results on the web, FormatCurrency().

View Replies View Related

Pull Down Menu Problem

i have a pull down menu with categories and the link but unfortunately it doesnt go to that pages at all. does anyone knows what's the problem:

<select name="select">
<option>Browse Our Catalogue</option>
<option value="http://www.mellon.com.sg/Shop/computer_accessories.asp">Computer Accessories</option>
<option value="http://www.mellon.com.sg/Shop/custom_made.asp">Custom Made Products</option>
</select>

View Replies View Related

Did MSFT Pull A Fast One?

I stated to someone in a different post, perhaps different NG, that since I
have 3rd party cookies blocked in IE and after a recent windows security
update, ads with 3rd party cookies do not load the page. Code:

View Replies View Related

Logging In Pull More Info

this is a continuation of my little login page I am setting up.
the login pages authenticates the user using Active Directory.
I also have a Database locally in MSSQL that has the users ref number (primary key, incrementing) first name, last name, and user id (same user id as ldap/AD etc)
what I want to do is when the user logs in the page will call the Database and grab the full name as well as the ref number. Later in the page if the user submits a form to add data to another database I want it to populate a column in a table using the ref number. that should be rather easy once I actually have that ref number.so how would I tell the page to go to my database and grab his ref number (as well as his name to be able to display Welcome first Lastname instead of userid?

View Replies View Related

Pull Down Menu Of Hyperlinks

I need a menu in one of my asp pages. A click on one hyperlink should display its pull down menu of the other related hyperlinks ... as that appears in search option this forums. As an example... main link will be Alphabets. A click on it or on focus.. it should display a drop down list of other related hyperlinks.

View Replies View Related

Pull Text In A Form

Pull text in from a simple notepad file on the server...simply looking for the code to place on page...I had it working in root but when I uploaded to server it din't function..checked permissions etc.

View Replies View Related

Pull Database Results

I'm not sure if this is possible or not, but I thought some one here should be able to tell me how it can be done. I'm building a site that will allow people to enter information about their company into a database, the information is then displayed in a profile page for them. They can enter things like news and events. This all works fine and dandy, but now I have had an idea.

Is it possible to be able to publish something for each company so that they can display the same information on their own website? I am thinking it would be something similar to an RSS feed.

Has anyone done anything like this before? The site right now is ASP with a MSSQL backend. The sites that will be posting the published information may be a variety of hosting platforms, if a certain platform is required then we will make it as a requirement.

View Replies View Related

Pull Specific Line From Txt

I would like to collect financial data from the stock exchange into the asp web page.
Complete daily results are in txt format on a fixed URL. Soo far I managed to pull the data on my web page, but now would like to select only specific rows. Unfortunatly the rows are not fixed, but each one has a 4 digit code on the beggining.

So I would like to create asp code which would select n rows from txt page based on specific code on the beginning - for example 0020. In the SQL would look like this one SELECT * FROM file.txt WHERE the beggining of the row = 0020

Is that possible in asp ?

View Replies View Related

Linking A Pull-down Menu

i was trying to find a way to link my pull-down menu with a column in a table in Microsoft Access using ASP. As I add new records to the database, I would like the pull-down menu to update also.

Once the submit button has been clicked, a table is inserted into the page with the information from the row in the database.

View Replies View Related

Pull The Posts Content

I have a database I built with Access with a Users_Table holding User_ID, User_Name, etc. A Posts_Table, with Post_Content, Post_ID, Post_DateandTime, Thread_ID (pointing to whichever thread the post is in from the Threads_Table), User_ID (pointing to the user who made the post in the Users_Table). Also a Threads_Table, with Thread_ID, and Thread_Title, etc.

I want to pull the Posts content, Post DateandTime, User who posted it, and thread title from the database (the page simply knows the ThreadID and the idea is to select all posts with that ThreadID). Could anyone help me create the SQL I need for this. I understand Inner Joins, and this would be the perfect place for them I would have thought, but I cannot get an inner join to work here. perhaps because this is an access created database,.

View Replies View Related

Asp Database Pull From A Query Not A Table?

it possible to pull the information from a query located inside the .mdb database already, instead of pulling the information from the tables ?

View Replies View Related

Creating Linked Pull Down Lists With VBscript

Trying to figure out how to make a pulldown menu, which when something is selected, another pulldown menu comes up with limited options (based on the input from the first). I've seen examples using Jscript, but none using VB. The rest of my page is done in VB. Any suggestions? Is this possible?

View Replies View Related

Passing Clicked Link To Pull Up Data

I have created a page that pulls up my data from an access database. A value has a link that goes to a detail page that I want to show all of the information for that value that was clicked.

How do I pass that value and then pull up the information for that value? Do I need to give you my code?

View Replies View Related

Pull Data Based On Text Box Info

I'm looking to display information pulled from a database based on
information the user puts into a text box. The user will enter their
sales rep number and I want to hit a table and return their name as
soon as they tab off of the text box. Any ideas or help would be
appreciated

View Replies View Related

How To Pull Data For Radio Buttons From Database?

It s very basic question..but stil i am getting a bit confused.I want to have two radio buttons which can be selected as well be deselected. The value shud be inserted in the DB.

How should i go on doing this. Also if i want to see my selection when i return back to the order page..how should i pull it from DB and display the radio button with the dot in it(checked )?

View Replies View Related

Pull Informtion From Database And Send It On Email Id

I have been asked to try and write a program that basically pulls some info from a sql database and automatically emails it to an email address on a certain day of the week .
So if anyone can offer advice or if they know of any script or tutorials online.

View Replies View Related

Pull Recrods From Table Using "WHERE Date

i am trying to pull records from a table in access using a Select...From...Where query.

I want the WHERE part to do this:

WHERE Gamedate >= (#"&Today&"#) <=(#"&Future&"#)

Today and Future are variables that look like this

Today = Date() 'Todays Dats
Future = Date()+7 'Todays date + 7 days

I have tried this without the variables and used the values that i have stored in the variables directly. And i have tried without the hash marks when i Do use the variables but it is not giving me the results i need.

When i do not use the variables i get a "(Missing Operator)" error.

View Replies View Related

External Server Pull Files From Internal Server

I have an application that needs to pull files from an internal server. This
is the setup. The web server is external facing, meaning exposed to the
internet. I then have a file server that sits inside our domain. I created a
COM object that can impersonate a user to retrieve files from that server.
However, I cannot get the application to pull files from the internal server.

I first tried a domain account that could reach both servers. This did not
work. I then had the network team create the same account on both machines.
This is not working either. I can impersonate the user (I am able to get the
user/users authenticated), but the script keeps coming back with and access
denied. Code:

View Replies View Related

If Statement

If a user enters in this to search a db

"Jon Doe" James Doh

return all of the exact matches Jon Doe (user uses quotes to clarify an exact search)
along with that: return all of the James and all of the Doh as well
qry to look like this as soon as I am able to divide up the string entered in by the user
select * from table where (NAME LIKE '%Jon Doe%') or
(NAME LIKE '%James%') or (NAME LIKE '%Doh%')

Thinking of using the instr to find the " but then what do I do to find the string inside of the two quotes, One quote would be easy. there is a couple of checks to preform:anyone run into this before or have any ideas/samples, etc

View Replies View Related

Sql Statement ?

I have created a query wizard page with ddl as your choice to find info. now each ddl has a default of a dash.

The thing is I want to do is have the sql statement to look through the database even when some of the ddl have a dash on them. or just ignore the ones with a dash and look for the ones that are selected. Is there any suggestions for this.

View Replies View Related

ASP If Statement

Below is my code for a question system i have created. However, i need to insert an if statement that redirects the user to test.asp if the value of q_id is not in my database, but i dont know how to do it?

<%
q_id = request("q_id")

sql = "SELECT * FROM questions WHERE PARENT_ID = 1"
Set objRS2 = Server.CreateObject("ADODB.Recordset")
objRS2.Open sql, objConn

sql_sql = "SELECT * FROM questions WHERE PARENT_ID = " & q_id
Set objRS3 = Server.CreateObject("ADODB.Recordset")
objRS3.Open sql_sql, objConn

%>

View Replies View Related

AND Statement

my AND statement is not working and I dont know why????

sql = "SELECT * FROM calls WHERE tech=" & userID "AND status = Open"

tech and status are the DB fields

userID is a variable

Open is just a word

View Replies View Related

If..Else Statement

i make a form with an AccountId box on it , when u enter the accountid in the box , and submit it will send u to a page that show u all the data for this accountid(retreive data)

until here everything is ok , and when i enter for ex. accountid : 5 , all the aacountid fiel data will be show to me , but the problem when i enter am unvalid accountid , it will give the error page that

what iwant to do that i want when i enter an unvaildaccountid an error text show to me like

response.write("The Id that u entered is unvaild , Try Again")

and this is the code , if u can change on it Code:

View Replies View Related

IF Statement

I am trying to use the following IF statement, and whenever I use a
single or double quote, I receive a syntax error. When using no
quotes, the syntax is accepted, but the statement does not perform
properly.

***The problem line***
<% if violation_type=''Tardy'' THEN %>
***rest of the statement***
TARDY VIOLATIONS
<% if rs2.Fields(0) = 0 THEN %>
This is the first unexcused Tardy violation for this employee. A
coaching is required. Click <A HREF=blah>HERE</Ato issue the
coaching.
<% ELSE %>
This employee has <%response.write(rs2.Fields(0))%previous
violations.
<% END IF %>
<% ELSE %>
The <%response.write(violation_type)%violation has been recorded.
<% END IF %>

Variables defined:
violation_type = request.form("violation_type")

View Replies View Related

If/Then Statement

On a page with a form (post method) and a hidden field "Process value = true", why would this statement not work:

<%
if request.Form("Process") = "true" THEN
The code in here sends an email to the user via CDOSYS
End IF
%>

This is what I have going on and it does not send the emal when the form is posted. Removing the If statement obviously sends the email the moment the form page is accessed, but thats not right.

View Replies View Related







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