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!

Recent content by coderwasp

  1. coderwasp

    date time question

    I would like to insert a mysql db date / time stamp so that I can return it later in the format: March 20, 2007, 12:56 pm my question is should I have the db field as datetime or timestamp and what is the function that generates the timestamp? also I need this to be sortable by date.
  2. coderwasp

    modify script

    how can I modify this function to pass it a specific value or a specific set of values? for example right now I am invoking it like this: onClick="toggleprob(this);" I'd likre to do it like this onClick="toggleprob(3,4);" and have table rows in position 3 become visible and table rows in...
  3. coderwasp

    simple data type question

    I am filling a database field with valuse such as 67.50; they are either integers or decimal numbers. What data type should I use in the db: float double or decimal What is the advantage of using either?
  4. coderwasp

    modify script

    thanks for that tip. The end resut is: aTR[i].style.display=(aTR[i].style.display=='none')? 'none' : 'none';
  5. coderwasp

    modify script

    I don't understand the logic behind it. It' not as if you have conditionals in it. I've figured out that if I do this: aTR[i].style.display=(aTR[i].style.display=='inline')? show : 'inline'; it will always show. I need the exact opposite.
  6. coderwasp

    modify script

    I have a script that toggles on and off the visibility of table rows. This works good except I need a script that simply turns off the visibility and does not toggle it. function toggleoff(obj) { var aTR=obj.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('tr'); var...
  7. coderwasp

    creating text boxes dynamically

    that works, thanks
  8. coderwasp

    creating text boxes dynamically

    I have a select box with values 1-20. What I'd like to do is onChange, write a set of textboxes corresponding to the value in the select box. For instance, if the user selects 6, then 6 text boxes would appear on the page. It could be something like: <input name="text1" type="text"...
  9. coderwasp

    update mysqld db with new field

    I have 2 MySql dbs on 2 different servers. I need 2 copy the data from one field in db1 and add it into a new field ind db2. What is the easiest way to do this? Both tables have the same number of records. In db1, tableoriginal let's say there's an int field named id and a field named copyme...
  10. coderwasp

    php in javascript

    why does this give me the error: Expected ')' <body onload="showAddress(<?php echo $address;?>); return false"> when <body onload="showAddress('the address'); return false"> works fine
  11. coderwasp

    problem with function

    Ok, I got what you mean about declaring variables, so I moved the connection info inside the function: $o_conn=mysql_pconnect("localhost","testuser","testpassword"); mysql_select_db('testdb',$o_conn) or die("Couldn't open database"); now when the function is invoked I get the error...
  12. coderwasp

    problem with function

    I tried it but it didn't work. I'm sorry I forgot to paste this line of code which was right above the function declaration: display_assigners($thisoneid,0); $adderid is a value that is passed from a get variable, it is set earlier in teh page $o_conn is in an include file. It is a...
  13. coderwasp

    Is it possible to display diffrent image every 15 seconds without refr

    <script> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully // ======================================= // set the following variables //...
  14. coderwasp

    problem with function

    When I load this page I get the error: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in report.php on line 130 (the line that reads $result= mysql_query($sql,$o_conn);) I know the query is valid and my datbase connection is correct, so there must be something...
  15. coderwasp

    undelete file

    I accidenatlly deleted a file off of a linux server using dreamweaver. Is there any way to recover this file?

Part and Inventory Search

Back
Top