Hi All,
I have the following code which runs fine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />...
Hi all,
I have found some code that uses javascript to change the image in a div without reloading the page
I have made a quick test page here http://www.mikecotton.com/test/
HTML Code
<div id="previewPane">
<img src="sub1_large.jpg"/>
</div>
<div id="theImages">
<a href=""...
Hi all,
I want to catch a mysql error, how would I go about doing this?
This is my situation. I have set a field in the db to be unique and therefore if the value from the user form matches one in the db then I want to be able to catch the error and do nothing else if the value from the form...
HI all,
I have a table called people in my database.
it looks like this
+----+------+
| id | name |
+----+------+
| 2 | bob |
| 1 | Jill |
| 3 | Jill |
| 4 | John |
| 5 | Jill |
+----+------+
I want to display the distinct name and how many times they are in the table
So like this...
Hi all,
I know how to check to see what a filenames extension is and to check to see if its valid.
The problem comes when a filenames extension is valid, but it may still contain harmful information. Imagine a scenario where a user creates a virus and renames it to photo.gif. This will get...
Thanks for the quick reply. Sorry but I dont get the following statement
"Another approach... probably a better approach... what if you move the query itself into the outter loop and only query for one month at a time? Wouldn't that be more simple?"
This is the results from the SQL query
id...
Hi all,
I am trying to display data from a database. I want the page to be displayed as
January
event 1
Febraury
March
event 2
event 3
April
etc etc etc.
So if there is an event in that month then display the event
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include...
now if i change cn to Connection like
Set recordset2= Connection.Execute(sSQL)
It complains about line 45
"ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal."
This line is
Response.Write "<tr><td>" & recordset2("search_name ")...
This is the complete page and I get
"Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/jamies_test_site/result.asp, line 33"
But i dont know why???
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
'declare your variables
Dim connection, recordset2, frmSearch
Dim sSQL...
Hi would like to display data from a database within groups the following
Department 1
file namea
file namec
Department 2
file nameb
file named
Based unpon the following query
sSQL="SELECT * FROM search WHERE search_name LIKE ""%" & frmSearch & "%""
I have the following which prints out the...
I want to have an ASP page which checks if a user is in a certain group in Active Directory (AD)
For example jbloggs is logged in and belongs to the group "project_allowed". When jbloggs goes to project.asp it will allow him access
However when jsmith is logged in and belongs to no groups and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.