navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Database Help!

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Database Help!
Page: [1]
 
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
Database Help! - 2/22/2006 16:01:31   
Hello,

I'm currently developing a website for my brother which I have a couple of issue:

www.tortugatrading.com/index2.htm

Issue 1:

I created a page www.tortugatrading.com/pistol_search.asp and the problem is that I can't get the "Details" button to display a detailed description of the specific item #. I figured out how to put the picture of the button in the database but all I can do is make a hyperlink to one page www.tortugatrading.com/pistol_22.htm and it makes every button on that page display the same page. Please help!

Issue 2:

As you can see in the links above there is a "Buy" button and I need it to be almost the same as the "Details" button. I need it to be specific and link to Paypal so people can buy a specific item.

Thank you

Chase
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/22/2006 23:55:32   
Are you able to show the code you are using?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/23/2006 16:22:49   
Im refering to the asp code used to create that page

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Spooky)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/23/2006 17:38:49   
Other than selecting, view, source to the pages I linked up above I don't know what your asking exactly. Thanks

Chase

(in reply to Spooky)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/23/2006 17:45:21   
I figured out part of Issue 2--"Creating a button to Paypal"

All I need to do now is find a way to enter this into the database so when a customer clicks on the buy button on www.tortugatrading.com/pistol_search.asp it will call this information and get linked to Paypal.

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="seanrich@tortugatrading.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Item_22">
<input type="hidden" name="amount" value="5075.00">
<p align="center">
<input type="image" src="http://www.tortugatrading.com/images/Buy.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</p>
</form>

Any suggestions?

Chase

(in reply to SOTG_Halsey)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/23/2006 18:24:40   
Looking at the page, it seems you are using the FP DRW?
If so, in frontpage, use the "code view" ( a tab at the bottom of the design view) to view the code source.

Select all of that and paste it here?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/23/2006 21:38:38   
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="Tortuga Trading">
<link rel="File-List" href="pistol_search_files/filelist.xml">
<title>Pistol Search</title>
<!--[if !mso]>
<style>
v\:*         { behavior: url(#default#VML) }
o\:*         { behavior: url(#default#VML) }
.shape       { behavior: url(#default#VML) }
</style>
<![endif]-->
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs.src=a; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
<!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]-->
</head>

<body onload="FP_preloadImgs(/*url*/'button44.jpg', /*url*/'button43.jpg', /*url*/'button8.jpg', /*url*/'button7.jpg', /*url*/'button20.jpg', /*url*/'button19.jpg', /*url*/'button2D1.jpg', /*url*/'button2C1.jpg', /*url*/'button41.jpg', /*url*/'button40.jpg', /*url*/'button3B.jpg', /*url*/'button3A.jpg', /*url*/'button3E.jpg', /*url*/'button3D.jpg', /*url*/'button51.jpg', /*url*/'button50.jpg', /*url*/'button53.jpg', /*url*/'button52.jpg', /*url*/'button4D.jpg', /*url*/'button4C.jpg', /*url*/'button1C1.jpg', /*url*/'button1D1.jpg')">

<table border="0" cellpadding="0" cellspacing="0" width="1242" height="706" id="table1">
	<!-- MSTableType="layout" -->
	<tr>
		<td valign="middle" bgcolor="#008080">
		<!-- MSCellType="ContentHead" -->
		<p align="center">
		<img border="0" src="images.jpg" width="123" height="125"></td>
		<td valign="middle" bgcolor="#008080">
		<!-- MSCellType="ContentHead" -->
		<p align="center"><!--[if gte vml 1]><v:shapetype id="_x0000_t161"
 coordsize="21600,21600" o:spt="161" adj="4050" path="m,c7200@0,14400@0,21600,m,21600c7200@1,14400@1,21600,21600e">
 <v:formulas>
  <v:f eqn="prod #0 4 3"/>
  <v:f eqn="sum 21600 0 @0"/>
  <v:f eqn="val #0"/>
  <v:f eqn="sum 21600 0 #0"/>
 </v:formulas>
 <v:path textpathok="t" o:connecttype="custom" o:connectlocs="10800,@2;0,10800;10800,@3;21600,10800"
  o:connectangles="270,180,90,0"/>
 <v:textpath on="t" fitshape="t" xscale="t"/>
 <v:handles>
  <v:h position="center,#0" yrange="0,8100"/>
 </v:handles>
 <o:lock v:ext="edit" text="t" shapetype="t"/>
</v:shapetype><v:shape id="_x0000_s1025" type="#_x0000_t161" alt="Totuga Trading Inc"
 style='width:486pt;height:69.75pt' adj="5665" fillcolor="black" strokecolor="red"
 strokeweight="1.5pt">
 <v:shadow color="#868686"/>
 <v:textpath style='font-family:"High Tower Text";font-size:40pt;font-weight:bold;
  v-text-kern:t' trim="t" fitpath="t" xscale="f" string="Tortuga Trading Inc"/>
</v:shape><![endif]--><![if !vml]><img border=0 width=650 height=74
src="pistol_search23_files/image001.gif" alt="Totuga Trading Inc" v:shapes="_x0000_s1025"><![endif]></p>
		<p align="center"><b><font face="Harrington" size="4" color="#FFFFFF">
		<span style="text-decoration: none">
		<a href="http://www.tortugatrading.com">
		<font color="#FFFFFF"><span style="text-decoration: none">Home</span></font></a></span> ~
		<span style="text-decoration: none">
		<a href="about_sean.htm">
		<font color="#FFFFFF"><span style="text-decoration: none">About Sean</span></font></a></span> ~
		<span style="text-decoration: none">
		<a href="contacts.htm">
		<font color="#FFFFFF"><span style="text-decoration: none">Contact Us</span></font></a></span> ~
		<span style="text-decoration: none">
		<font color="#FFFFFF"><a href="search_site.asp">
		<font color="#FFFFFF"><span style="text-decoration: none">Search Site</span></font></a></font></span> ~
		<span style="text-decoration: none">
		<a href="terms__agreements.htm">
		<font color="#FFFFFF"><span style="text-decoration: none">Terms & Agreements</span></font></a></span></font></b></td>
		<td valign="middle" bgcolor="#008080" height="125">
		<!-- MSCellType="ContentHead" -->
		<p align="center">
		<img border="0" src="images.jpg" width="123" height="125"></td>
	</tr>
	<tr>
		<td valign="top" bgcolor="#C0C0C0" colspan="3" height="20">
		<p align="center"><a href="antiques.asp">
		<img border="0" id="img14" src="button24.jpg" height="20" width="100" alt="Antiques" onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'button19.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'button24.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'button20.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'button19.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Antiques"></a><a href="bayonets.asp"><img border="0" id="img16" src="button2B1.jpg" height="20" width="100" alt="Bayonets" onmouseover="FP_swapImg(1,0,/*id*/'img16',/*url*/'button2C1.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img16',/*url*/'button2B1.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img16',/*url*/'button2D1.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img16',/*url*/'button2C1.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Bayonets"></a><a href="cannons_search.asp"><img border="0" id="img17" src="button55.jpg" height="20" width="100" alt="Cannons" onmouseover="FP_swapImg(1,0,/*id*/'img17',/*url*/'button40.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img17',/*url*/'button55.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img17',/*url*/'button41.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img17',/*url*/'button40.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Cannons"></a><a href="coin_search.asp"><img border="0" id="img18" src="button56.jpg" height="20" width="100" alt="Coins" onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'button3A.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'button56.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button3B.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'button3A.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Coins"></a><a href="pistol_search.asp"><img border="0" id="img19" src="button3C.jpg" height="20" width="100" alt="Pistols" onmouseover="FP_swapImg(1,0,/*id*/'img19',/*url*/'button3D.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img19',/*url*/'button3C.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img19',/*url*/'button3E.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img19',/*url*/'button3D.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Pistols"></a><a href="powder_horn_search.asp"><img border="0" id="img20" src="button3F.jpg" height="20" width="100" alt="Powder Horns" onmouseover="FP_swapImg(1,0,/*id*/'img20',/*url*/'button50.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img20',/*url*/'button3F.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img20',/*url*/'button51.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img20',/*url*/'button50.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Powder Horns"></a><a href="rifle_search.asp"><img border="0" id="img21" src="button57.jpg" height="20" width="100" alt="Rifles" onmouseover="FP_swapImg(1,0,/*id*/'img21',/*url*/'button52.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img21',/*url*/'button57.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img21',/*url*/'button53.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img21',/*url*/'button52.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Rifles"></a><a href="shipwrecked_treasures.htm"><img border="0" id="img13" src="button6.jpg" height="20" width="140" alt="Shipwreck Treasures" onmouseover="FP_swapImg(1,0,/*id*/'img13',/*url*/'button7.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img13',/*url*/'button6.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img13',/*url*/'button8.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img13',/*url*/'button7.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-proportional: 0; fp-orig: 0" fp-title="Shipwreck Treasures"></a><a href="sword_search.asp"><img border="0" id="img24" src="button1B1.jpg" height="20" width="111" alt="Edged Weapons" onmouseover="FP_swapImg(1,0,/*id*/'img24',/*url*/'button1C1.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img24',/*url*/'button1B1.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img24',/*url*/'button1D1.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img24',/*url*/'button1C1.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-proportional: 0" fp-title="Edged Weapons"></a><a href="uniforms_search.asp"><img border="0" id="img23" src="button4B.jpg" height="20" width="100" alt="Uniforms" onmouseover="FP_swapImg(1,0,/*id*/'img23',/*url*/'button4C.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img23',/*url*/'button4B.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img23',/*url*/'button4D.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img23',/*url*/'button4C.jpg')" fp-style="fp-btn: Braided Row 1; fp-bgcolor: #C0C0C0; fp-orig: 0" fp-title="Uniforms"></a></td>
	</tr>
	<tr>
		<td colspan="3" valign="top">
		<form BOTID="0" METHOD="POST" action="pistol_search.asp">
			<input type="hidden" name="fpdbr_0_PagingMove" value="  |<  ">
		</form>
		<table width="100%" border="1">
			<thead>
				<tr>
					<th ALIGN="LEFT"><b>Key</b></th>
					<th ALIGN="LEFT"><b>Name</b></th>
					<th ALIGN="LEFT"><b>Description</b></th>
					<th ALIGN="LEFT"><b>Price</b></th>
					<th ALIGN="LEFT" width="4%"><b>Details</b></th>
					<th ALIGN="LEFT" width="2%"><b>Buy</b></th>
					<th ALIGN="LEFT" width="10%"><b>Picture</b></th>
				</tr>
			</thead>
			<tbody>
				<!--webbot bot="DatabaseRegionStart" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-columntypes="3,202,202,2,202,202,202" s-dataconnection="database2" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="Pistols" s-displaycolumns="Key,Name,Description,Price,Details,Buy,Picture" s-criteria s-order s-sql="SELECT * FROM Pistols" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the start of a Database Results region.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Pistols"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=7 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="database2"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&Name=202&Description=202&Price=2&Details=202&Buy=202&Picture=202&"
fp_iDisplayCols=7
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="25530" --><tr>
					<td>
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Key" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Key<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Key")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="2510" --></td>
					<td>
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Name" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Name<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Name")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="3900" --></td>
					<td>
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Description" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Description<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Description")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="30092" --></td>
					<td>
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Price" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Price<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Price")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="9640" --></td>
					<td width="4%">
					<p align="center">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Details")%>"></td>
					<td width="2%">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Buy")%>"></td>
					<td width="10%">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Picture")%>" align="right"></td>
				</tr>
				<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE="  |<  "><INPUT TYPE=Button VALUE="   <  "><INPUT TYPE=Button VALUE="  >   "><INPUT TYPE=Button VALUE="  >|  ">  [1/5]</NOBR><BR></td></tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
		</table>
</td>
	</tr>
	<tr>
		<td valign="top" bgcolor="#008080" colspan="3" height="98">
		<!-- MSCellType="ContentFoot" -->
		<p align="center"><b>Tortuga Trading, Inc. DBA The Treasure Connection 
		2240 Encinitas Blvd., Suite D-228 Encinitas, CA 92024</b></p>
		<p align="center"><b>s-rich@sbcglobal.net 760-271-5457</b></p>
		<p align="center"><b><font face="Rockwell">Website Built by: </font>
		<font face="Rage Italic">Halsey, Charles R   </font>
		<font face="Poor Richard"><a href="feedback.htm">Leave Feedback</a></font></b></td>
	</tr>
	<tr>
		<td width="295"></td>
		<td width="650"></td>
		<td height="2" width="297"></td>
	</tr>
</table>
<p align="center">Copyright © 2001 Tortuga Trading, Inc., DBA The Treasure 
Connection. All rights reserved.<br>
Revised: <!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y" -->.</p>

</body>

</html>


< Message edited by Spooky -- 2/24/2006 22:33:29 >

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/24/2006 22:37:20   
Youd be looking at changing this code :
<td width="2%">
<img border="0" src="<%=FP_FieldLink(fp_rs,"Buy")%>"></td>
<td width="10%">


For something like ths (for a paypal button)
<td width="2%">
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="seanrich@tortugatrading.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="<%=FP_Field(fp_rs,"Key")%>">
<input type="hidden" name="amount" value="<%=FP_Field(fp_rs,"Price")%>">
<p align="center">
<input type="image" src="http://www.tortugatrading.com/images/Buy.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</p>
</form> 
<td width="10%">


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 1:34:40   
Spooky,

Thank you so much! It worked out great. Thank you for your time and effort. When the website is all ready for the public I'll submit it for review. Again thank you.

Chase

(in reply to Spooky)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 6:17:18   
Spooky,

I spoke to soon. Adding that code to FP was just like adding a button and and creating a hyperlink to it. As soon as you reference the database to one item, when you have multiple items they all get the same result.

Chase

(in reply to SOTG_Halsey)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/25/2006 12:15:06   
Can you show us the new changed code that does that?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 14:34:04   
Here is the database javascript:

<!--webbot bot="DatabaseRegionStart" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-columntypes="3,202,202,2,203,203,202" s-dataconnection="database2" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="Pistols" s-displaycolumns="Key,Name,Description,Price,Details,Buy,Picture" s-criteria s-order s-sql="SELECT * FROM Pistols" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the start of a Database Results region.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Pistols"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=7 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="database2"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&Name=202&Description=202&Price=2&Details=203&Buy=203&Picture=202&"
fp_iDisplayCols=7
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="25538" --><tr>
					<td width="2%">
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Key" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Key<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Key")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="2510" --></td>
					<td width="12%">
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Name" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Name<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Name")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="3900" --></td>
					<td width="22%">
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Description" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Description<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Description")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="30092" --></td>
					<td width="8%">
					<!--webbot bot="DatabaseResultColumn" s-columnnames="Key,Name,Description,Price,Details,Buy,Picture" s-column="Price" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Price<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Price")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="9640" --></td>
					<td width="3%">
					<p align="center">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Details")%>"></td>
					<td width="3%">
					<p align="center">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Buy")%>"></td>
					<td width="3%">
					<p align="center">
					<img border="0" src="<%=FP_FieldLink(fp_rs,"Picture")%>"></td>
				</tr>
				<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="5" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE="  |<  "><INPUT TYPE=Button VALUE="   <  "><INPUT TYPE=Button VALUE="  >   "><INPUT TYPE=Button VALUE="  >|  ">  [1/5]</NOBR><BR></td></tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>


This I believe can't change:

<td width="3%">
<p align="center">
<img border="0" src="<%=FP_FieldLink(fp_rs,"Details")%>"></td>
<td width="3%">
<p align="center">
<img border="0" src="<%=FP_FieldLink(fp_rs,"Buy")%>"></td>

as soon as you limit it to one type of button it makes all button in the database and on the webpage the same link to paypal or in the case of the "details" button the same page that describes a specific Item #. Correct me if I'm wrong, the change has to happen in the actual database. Thanks for your help.

Chase

< Message edited by Spooky -- 2/27/2006 1:50:50 >

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/25/2006 16:12:57   
I dont see that youve added the new code though?
One method to look at first (to allow easier changes) is the Spooky diet that (you can find in my sig below)

Once you create that "one" button, it exists inside a loop
So ass it adds new items automatically, it adds another item

The reason each item is unique is because we have a unique item name :
<input type="hidden" name="item_name" value="<%=FP_Field(fp_rs,"Key")%>">

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 18:30:30   
Spooky,

The buy button works. After reading your Spooky Diet and adding this to the page:
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="seanrich@tortugatrading.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="<%=FP_Field(fp_rs,"Key")%>">
<input type="hidden" name="amount" value="<%=FP_Field(fp_rs,"Price")%>">
<p align="center">
<input type="image" src="http://www.tortugatrading.com/images/Buy.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</p>
</form>

it worked out just the way I wanted it to.

Now all I have to worry about is the "Detail" button. That I'm just trying to reference another page that has a detailed description. If you have any insight on that please let me know. You have been a great help and very patient with me. Thank you.

Chase

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/25/2006 18:55:37   
Linking to another page - the theory is just the same.
How will you show the specific details for one item? From the database? A static page?
If static, where does the URL come from?


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 19:43:14   
Static...the URL is www.tortugatrading.com/pistol_22.htm, www.tortugatrading.com/pistol_23.htm and so on.

Chase

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/25/2006 21:10:20   
Then you need a way of relating the record to the display page. Normally you would do one of 3 things

1) Store the URL of the static page
2) Create the link to the static page using parts of the existing record
3) use a 'dynamic' teplate page to pull the individual record details from the DB

Is there part of the current database record that could be used to create the URL?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 22:38:53   
Spooky,

quote:

<td width="3%">
<p align="center">
<img border="0" src="<%=FP_FieldLink(fp_rs,"Details")%>"></td>


Is this what your asking for.

< Message edited by SOTG_Halsey -- 2/25/2006 22:45:55 >

(in reply to Spooky)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/25/2006 23:55:05   
Do you think I can link to another page as well. Which one would be easier to do?

Static or link to another page.

(in reply to SOTG_Halsey)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/26/2006 2:02:52   
Its just that I dont see any data when I check your page for that column "details" ?


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/26/2006 2:17:25   
I have not put anything there until I get the code right. You can still find the pages www.tortugatrading.com/pistol_22.htm, xxxxxx/pistol_23.htm, xxxxxx/pistol_24.htm and so on.

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/26/2006 15:05:13   
If the details field was to contain a link to the static page, then this is how it would look :

Field contains "pistol_22.htm"

The link would look like :
<a href="<%=FP_FieldLink(fp_rs,"Details")%>">View Details</a>

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/26/2006 16:01:44   
Which do I put in the database and which do I put in FP code? Also, if I put anything in the database is a meno, text, hyperlink....?

Chase

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/26/2006 16:11:25   
If you are going to link to a static page using the details column, then it will be a text field and contain the page name for the detail page

eg only contains the text : pistol_22.htm

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/26/2006 16:58:15   
Spooky,

Thank you for your help. It worked and looks great. Do you happen to know how to make the "View Details</a> a picture? If not this will work. Thank you again for all your help.

Chase

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Help! - 2/26/2006 17:58:21   
To make it a picture, use normal html :

<a href="<%=FP_FieldLink(fp_rs,"Details")%>"><img src="yourimage" border=0></a>

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to SOTG_Halsey)
SOTG_Halsey

 

Posts: 19
Joined: 2/22/2006
Status: offline

 
RE: Database Help! - 2/26/2006 21:10:25   
Thank you!

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Database Help!
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts