<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Webmaster-Talk.com - ASP Forum</title>
		<link>http://www.webmaster-talk.com/</link>
		<description>ASP coding, i.e. Active Server Pages,  discussions and help.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 23:45:07 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://img.webmaster-talk.com/bluesky/vb_img/misc/rss.jpg</url>
			<title>Webmaster-Talk.com - ASP Forum</title>
			<link>http://www.webmaster-talk.com/</link>
		</image>
		<item>
			<title>My Insert statement needs a trim</title>
			<link>http://www.webmaster-talk.com/asp-forum/191770-my-insert-statement-needs-a-trim.html</link>
			<pubDate>Mon, 16 Nov 2009 10:01:40 GMT</pubDate>
			<description>Hi, 
 
I have an insert statement that i need to refine...basically I need to trim the first couple of letters of whats trapped in the field. 
so...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have an insert statement that i need to refine...basically I need to trim the first couple of letters of whats trapped in the field.<br />
so e.g. <br />
<br />
Z:\aaa\1.jpg <br />
<br />
needs to become <br />
<br />
aaa\1.jpg<br />
<br />
I've tried this but its not working<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sImagelink = mid(request.form(&quot;Imagelink&quot;),4,len(request.form(&quot;Imagelink&quot;)))</code><hr />
</div>any ideas?</div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/asp-forum/">ASP Forum</category>
			<dc:creator>The Mighty Dub</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/asp-forum/191770-my-insert-statement-needs-a-trim.html</guid>
		</item>
		<item>
			<title>VBSCRIPT from sql 2000 to sql 2008</title>
			<link>http://www.webmaster-talk.com/asp-forum/190941-vbscript-from-sql-2000-sql-2008-a.html</link>
			<pubDate>Thu, 05 Nov 2009 11:41:36 GMT</pubDate>
			<description><![CDATA[Hello all, 
  
I have a VBSCRIPT that works perfect with SQL 2000 but doesn't work with sql 2008 . any help please? 
  
<% 
dim rs, strSQL, action,...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
 <br />
I have a VBSCRIPT that works perfect with SQL 2000 but doesn't work with sql 2008 . any help please?<br />
 <br />
<font face="Calibri"><font size="3">&lt;%</font></font><br />
<font face="Calibri"><font size="3">dim rs, strSQL, action, id</font></font><br />
<font face="Calibri"><font size="3">dim headline, news_date, copy, sub_heading, author</font></font><br />
 <br />
<font face="Calibri"><font size="3">id = trim(request.form(&quot;id&quot;))</font></font><br />
<font face="Calibri"><font size="3">headline = trim(request.form(&quot;headline&quot;))</font></font><br />
<font face="Calibri"><font size="3">sub_heading = trim(request.form(&quot;sub_heading&quot;))</font></font><br />
<font face="Calibri"><font size="3">news_date = trim(request.form(&quot;news_date&quot;))</font></font><br />
<font face="Calibri"><font size="3">author = trim(request.form(&quot;author&quot;))</font></font><br />
<font face="Calibri"><font size="3">copy = trim(request.form(&quot;copy&quot;))</font></font><br />
<font face="Calibri"><font size="3">headline = Replace(headline, &quot;'&quot;, &quot;''&quot;, 1, -1, 1)</font></font><br />
<font face="Calibri"><font size="3">news_date = Replace(news_date, &quot;'&quot;, &quot;''&quot;, 1, -1, 1)</font></font><br />
<font face="Calibri"><font size="3">author = Replace(author, &quot;'&quot;, &quot;''&quot;, 1, -1, 1)</font></font><br />
<font face="Calibri"><font size="3">copy = Replace(copy, &quot;'&quot;, &quot;''&quot;, 1, -1, 1)</font></font><br />
 <br />
 <br />
<font face="Calibri"><font size="3">set rs = server.createobject(&quot;ADODB.RECORDSET&quot;)</font></font><br />
 <br />
<font face="Calibri"><font size="3">if id = &quot;&quot; then</font></font><br />
<font size="3"><font face="Calibri">'Insert record</font></font><br />
<font size="3"><font face="Calibri">strSQL = &quot;insert into tbl _news (headline, sub_heading, news_date, author, copy) values (&quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;'&quot; &amp; headline &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;'&quot; &amp; sub_heading &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;'&quot; &amp; getLongDate(news_date) &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;'&quot; &amp; author &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;'&quot; &amp; copy &amp; &quot;')&quot; </font></font><br />
<font face="Calibri"><font size="3">else</font></font><br />
<font size="3"><font face="Calibri">'Update the record.</font></font><br />
<font size="3"><font face="Calibri">strSQL = &quot;update tbl _news set &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;headline = '&quot; &amp; headline &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;sub_heading = '&quot; &amp; sub_heading &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;news_date = '&quot; &amp; getLongDate(news_date) &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;author = '&quot; &amp; author &amp; &quot;', &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;copy = '&quot; &amp; copy &amp; &quot;' &quot;</font></font><br />
<font size="3"><font face="Calibri">strSQL = strSQL &amp; &quot;where id = &quot; &amp; id</font></font><br />
<font size="3"><font face="Calibri">end if </font></font><br />
<font face="Calibri"><font size="3">dCmd.CommandText = strSQL</font></font><br />
<font face="Calibri"><font size="3">dCmd.CommandType = 1</font></font><br />
<font face="Calibri"><font size="3">set rs = dCmd.execute</font></font><br />
 <br />
<font face="Calibri"><font size="3">set rs = nothing</font></font><br />
<font face="Calibri"><font size="3">set dCmd = nothing</font></font><br />
 <br />
<font size="3"><font face="Calibri">response.redirect(&quot;main.asp&quot;) </font></font><br />
<font face="Calibri"><font size="3">%&gt;</font></font></div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/asp-forum/">ASP Forum</category>
			<dc:creator>cafeolai</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/asp-forum/190941-vbscript-from-sql-2000-sql-2008-a.html</guid>
		</item>
		<item>
			<title><![CDATA[JScript error, Expected ';' but where?]]></title>
			<link>http://www.webmaster-talk.com/asp-forum/190772-jscript-error-expected-but-where.html</link>
			<pubDate>Tue, 03 Nov 2009 19:04:19 GMT</pubDate>
			<description>Hi all, 
              I recently found some code that allowed me to display a random image without having to name the images a specific name....</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
              I recently found some code that allowed me to display a random image without having to name the images a specific name. Instead I could just throw in an image to a directory and the JavaScript will just pick an image randomly. Testing the code I find it is not happy with the syntax, and although it has narrowed it down to a line and a clue, having placed the ';' in various positions the same error continues to bug me. The error message is quoted below, can anyone please point me in the right direction? <br />
 <br />
Error Type:<br />
Microsoft JScript compilation (0x800A03EC)<br />
Expected ';'<br />
/bigdogz/rndm.asp, line 12, column 6<br />
Const IMGS_DIR = &quot;/miscimages/&quot;;<br />
-----^<br />
Thanks in advance,<br />
Mitch...</div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/asp-forum/">ASP Forum</category>
			<dc:creator>CMitch07</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/asp-forum/190772-jscript-error-expected-but-where.html</guid>
		</item>
		<item>
			<title>Possible SQL Injection attack...i think!!!</title>
			<link>http://www.webmaster-talk.com/asp-forum/189820-possible-sql-injection-attack-i-think.html</link>
			<pubDate>Thu, 22 Oct 2009 15:49:13 GMT</pubDate>
			<description>Hi, 
 
I just came across a piece of script that has been put into my source code throughout the site...and not by me!!!. Im using ASP pages and sql...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I just came across a piece of script that has been put into my source code throughout the site...and not by me!!!. Im using ASP pages and sql 2000 db. <br />
<br />
Im not sure how they did it but im fearing this could get more serious and end up them hitting my db. Here is example(kind of) of the script im finding...<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script src=&quot;Http://www.domainname.com /a /a .php&gt;&lt;/script&gt;</code><hr />
</div>HELP!!!!</div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/asp-forum/">ASP Forum</category>
			<dc:creator>The Mighty Dub</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/asp-forum/189820-possible-sql-injection-attack-i-think.html</guid>
		</item>
	</channel>
</rss>
