Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jamiecottonuk

    New line inside javascript

    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" />...
  2. jamiecottonuk

    Loading videos inside a div

    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=""...
  3. jamiecottonuk

    Catching MySQL Errors

    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...
  4. jamiecottonuk

    Subquery and counting

    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...
  5. jamiecottonuk

    Checking file type with ASP

    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...
  6. jamiecottonuk

    Problem with loops

    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...
  7. jamiecottonuk

    Problem with loops

    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...
  8. jamiecottonuk

    Group Display

    Just noticed it should be ("search_name") and not ("search_name ") No space. Thanks
  9. jamiecottonuk

    Group Display

    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 ")...
  10. jamiecottonuk

    Group Display

    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...
  11. jamiecottonuk

    Group Display

    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...
  12. jamiecottonuk

    ASP &amp; Active directory

    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...

Part and Inventory Search

Back
Top