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 dencom 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: *

  • Users: coolicus
  • Content: Threads
  • Order by date
  1. coolicus

    automatically toggle visability of layers

    At the moment I have a layer than scrools top to bottom and back again if the content within it exceeds the page, however this is proving to be a unusable. So I thought about rotating between layers automatically, display layer 1 for 10 secs then layer 2 for 10 secs, back to layer 1 etc. Using...
  2. coolicus

    refromat date from yyyymmdd to dd/mm/yyyy

    A database holds the date as a varchar in the format yyyymmdd so today is held as 20080320 Is it possible to output this on my page as 20/03/2008 At present I just call it using rs("deadlinedate") which outputs 20080320. I tried to use right and left thanks for any help you can give
  3. coolicus

    change script from window scroll to layer scroll

    I found this script on a javascript site that automatically scrolls the window up and down, is it possible to make tchange this to make a layer scroll up and down instead of the whle window?? <script type="text/javascript"> function page_size() { var y, h; if(window.innerHeight &&...
  4. coolicus

    copy input from a text field into another text field

    Is it possible to copy input from a text field into another text field, but minus the space? So if someone types into text1 tek tips is great into text2 goes tektipsisgreat The field can either be populated when the user clicks away from text1 or as each key is presed, which is easier...
  5. coolicus

    if statement inside an echo?

    In my edit page of my cms I am writing the form and populating it if there is content existing, but how do I check if the checkbox has a value of 1, if so then echo 'checked'? Here is what I am doing $query1=" SELECT * FROM properties where id = '{$_GET['id']}' "...
  6. coolicus

    session logon

    I am trying to create a simple text field login but am struggling <?php session_start(); if($_POST){ $_SESSION['username']=$_POST["loginpass"]; } if(!$_SESSION['username'] == "password"){ echo "You are not authenticated. Please login.<br><br> <form action='index.php' method='post'>...
  7. coolicus

    convert currency

    Does anyone know of/use a currency converting tool that can be placed into a website? At the moment I have a simple admin that we type a rough conversion rate into, using this figure the website then shows the price in £ and Euro, is it possible to use sometyhing that updates the conversion rate...
  8. coolicus

    cookie and redirect

    I am creating a login page and am having trouble with the cookie and redirect function. Basically I want the user to have a simple textbox, if they type in the correct password they get directed to the admin page and a cookie is set for all other admin pages to check. Can someone see where I...
  9. coolicus

    help with updating search results

    I have done some html but am new to this scripting lark, anyway I have managed to create a mySQL database and a php web page to search the database and bring the results I would like to filter the results, the user simply types a region to start with say UK, then onn the results page are all of...
  10. coolicus

    using LIKE with mysql

    My last question hopefully :o) My search results page at present grabs all the data, I want it to only bring back depending on what the user types into a search field, so I guess I need to use LIKE So for my results counter... $query2 = "SELECT COUNT(*) as c FROM properties where city LIKE...
  11. coolicus

    check if DB field has text and display if yes

    I am trying to check if my field has data, if it does then display the header and the text within the field. <?php if(!($rs1['other']==0)) { echo "<b>Other </b><br /><br />" . echo $rs1['other']; } ?> Can someone point out where I am going wrong? So what I tried to do was 1. check if...
  12. coolicus

    every other entry change colour

    I am trying to add a database to our website to make updating etc easier using php. I have managed to get it to output the results but they all blend in, can someone help in making the class change for every other entry please? Here is what I have <?php include("dbconn.php"); ?> <?php $query...
  13. coolicus

    session never ends

    Our phone system uses .asp files for the screen options etc. If a user logs in to a particular feature after about 30 mins of inactivity it asks you to log back in if you try to use the features, but trying to log back in says that you are already logged in. There is a global.asa file with...
  14. coolicus

    Templates in Word

    I have a big document in Word 2003 that I saved as a template with some fields, double click a field to fill it in. But I have many duplicate fields such as 'name' that I have to fill in mutiple times throughout the document. I have seen some templates that when you open a new doc based on that...
  15. coolicus

    excel format cell if 1 entered

    In an Excel spreadsheet, is it possible to make the spreadsheet automatically format a cell if the value '1' is entered? We would need the number to be red and bold in the cell, is that possible? Thanks
  16. coolicus

    grabbing coreect details

    I am using asp to gather details form a database but am unsure of how to go about doing what I need. The database has columns including id, name, address, refid The id is a unique field to each row, the refid is a number of the id field related to that row. For example I may have one user...
  17. coolicus

    better way than lots of if's

    I have a script that checks before and after values in a DB then emails the user with the bits that have changed. I created variables from the DB first as strStep1 etc: if request.form("step1") <> strStep1 then alertStep1 = true end if if request.form("step2") <> strStep2 then alertStep2 =...
  18. coolicus

    dates and weekends with asp

    Can asp work out weekends (I guess using a calendar) so that I can write a script that works out deadlines taking into account only working days and making sure the deadline doesn`t fall on a weekend. I basically need to write a small app that sets deadline dates as deadline 1 = date of input +...
  19. coolicus

    better way to do loads of ifs

    I have a page that I need to use asp to check if a database field has data, if it has display one image if not display another. There are 10 times I would need to do this, is there a better way of doing it than how I am doing it? I guess I am using too many resources and slowing the page down...
  20. coolicus

    how to do these forms?

    I have a flat pdf that people print off and post in completed. I noticed this today http://www.metrokc.gov/JOBS/JobApplications.htm How the hecky did they create the fillable pdf form, it limits the characters to the space and reformats when you click on another field. I have acrobat 7...

Part and Inventory Search

Back
Top