Date (date and time) with MySQL, register here!

Hi,
Summary:
I have a page (form) to capture attendance. It works, it allows user to enter their attendance details. On click, it writes to the database - table. The date is not captured on the form. I want to date stamp this by inserting a date (date and time - declared field). I will provide source code. Please pin point what code I should be inserting and wheres about within this code.
Question:
Insert date and time into database table -
Code:
<?php require_once('Connections/dbAttendance.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
  $insertSQL = sprintf("INSERT INTO attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['textfield'], "text"),
                       GetSQLValueString($_POST['select'], "text"),
                       GetSQLValueString($_POST['textfield2'], "text"),
                       GetSQLValueString($_POST['textfield3'], "text"),
                       GetSQLValueString($_POST['textfield4'], "text"),
                       GetSQLValueString($_POST['textfield5'], "text"),
                       GetSQLValueString($_POST['select5'], "text"),
                       GetSQLValueString($_POST['select2'], "text"),
                       GetSQLValueString($_POST['select4'], "text"),
                       GetSQLValueString($_POST['textfield7'], "text"),
                       GetSQLValueString($_POST['select3'], "text"));
  mysql_select_db($database_dbAttendance, $dbAttendance);
  $Result1 = mysql_query($insertSQL, $dbAttendance) or die(mysql_error());
  $insertGoTo = "Thankyou.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_dbAttendance, $dbAttendance);
$query_rsAttendance = "SELECT * FROM attendlist";
$rsAttendance = mysql_query($query_rsAttendance, $dbAttendance) or die(mysql_error());
$row_rsAttendance = mysql_fetch_assoc($rsAttendance);
$totalRows_rsAttendance = mysql_num_rows($rsAttendance);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delegate Register</title>
<link href="Registerpage.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
</head>
<?php
$date = date(“format”, $timestamp);
?>
<body>
<div class="container">
  <div class="header"><img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" /><!-- end .header --></div>
  <div class="content">
    <h3>Register: <?php echo "Date  - ".date("d/m/Y - H:ia")?></h3>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form">
      <table width="780" border="0">
        <tr>
          <td><div align="right">User ID *</div></td>
          <td><span id="sprytextfield1">
            <input name="textfield" type="text" id="textfield" tabindex="1" size="18" maxlength="10" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Title *</div></td>
          <td><span id="spryselect1">
            <select name="select" id="select" tabindex="2">
              <option value="0">Select</option>
              <option value="1">Ms</option>
              <option value="2">Mrs</option>
              <option value="3">Mdm</option>
              <option value="4">Dr</option>
              <option value="5">Mr</option>
              <option value="6">Prof</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">First name*</div></td>
          <td><span id="sprytextfield2">
            <input name="textfield2" type="text" id="textfield2" tabindex="3" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Surname *</div></td>
          <td><span id="sprytextfield3">
            <input name="textfield3" type="text" id="textfield3" tabindex="4" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Contact / Bleep *</div></td>
          <td><span id="sprytextfield4">
            <input name="textfield4" type="text" id="textfield4" tabindex="5" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Mobile no: (optional)</div></td>
          <td><input name="textfield5" type="text" id="textfield5" tabindex="6" size="20" maxlength="20" /></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Job Role *</div></td>
          <td><span id="spryselect5">
            <select name="select5" id="select5" tabindex="7">
              <option value="0">Select </option>
              <option value="1">Doctor</option>
              <option value="2">Nurse IP</option>
              <option value="3">Nurse OP</option>
              <option value="4">Midwife</option>
              <option value="5">Booking Clerk</option>
              <option value="6">Medical Secretary</option>
              <option value="7">OP Receptionist</option>
              <option value="9">CNS/NP</option>
              <option value="10">Tester</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Manager's Name *</div></td>
          <td><span id="sprytextfield5">
            <input name="textfield7" type="text" id="textfield7" tabindex="8" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Course *</div></td>
          <td><span id="spryselect2">
            <select name="select2" id="select2" tabindex="9">
              <option value="0">Select</option>
              <option value="1">Demo</option>
              <option value="2">Doctors</option>
              <option value="9">CNS/NP</option>
              <option value="3">Nurse IP</option>
              <option value="4">Nurse OP</option>
              <option value="5">Midwife</option>
              <option value="6">Booking Clerk</option>
              <option value="7">Medical Secretary</option>
              <option value="8">OP Receptionist</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Location *</div></td>
          <td><span id="spryselect3">
            <select name="select3" id="select3" tabindex="10">
              <option value="0">Select </option>
              <option value="1">CHX 12 Floor Rm 1</option>
              <option value="2">CHX 12 Floor Rm 2</option>
              <option value="3">CHX 10 West </option>
              <option value="4">HH N207 </option>
              <option value="5">HH W12 Conference</option>
              <option value="6">SMH Rm a</option>
              <option value="7">SMH Rm b</option>
              <option value="8">SMH Ming Wing Rm 5</option>
              <option value="9">SMH Ming Wing Rm 3</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">CPG *</div></td>
          <td><span id="spryselect4">
            <select name="select4" id="select4" tabindex="11">
              <option value="0">Select </option>
              <option value="1">CPG 1 - Medicine</option>
              <option value="2">CPG 2 - Surgery and Cancer</option>
              <option value="3">CPG 3 - Specialist Services </option>
              <option value="4">CPG 4 - Circulatory Services and Renal Medicine</option>
              <option value="5">CPG 5 - Womens and Children</option>
              <option value="6">CPG 6 - Clinical and Investigative Sciences</option>
              <option value="7">CPG 7 - Private Patients</option>
              <option value="8">Others</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td><input name="button" type="submit" id="button" value="Submit" /></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="center">*Mandatory fields </div></td>
          <td> </td>
          <td> </td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form" />
    </form>
<!-- end .content --></div>
  <div class="footer">
<p align="center">
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
      <p align="center"> Cerner@Imperial ICT Training Team </p>
</p>
  <!-- end .footer --></div>
  <!-- end .container --></div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["change", "blur"]});
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["change", "blur"]});
var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3", {validateOn:["change", "blur"]});
var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["change", "blur"]});
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur", "change"]});
var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {validateOn:["blur", "change"]});
</script>
</body>
</html>
<?php
mysql_free_result($rsAttendance);
?>

There are several ways. One is to get the date from the php time() function and use that in your insert statement. Another is to use MySQL CURDATE() function. But probably the easiest and best is to simply define the default value for the date/time column as the current date/time and exclude it from the insert statement. No code changes necessary.
http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html

Similar Messages

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

  • MCTS 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012

    I am searching for training kit for Exam 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012) but I think is not published yet. I was expecting its release in Jan or Feb 2014. Would any one can tell me its release date or any place
    where I can find this book.
    Thanks
     

    Hi Azhar lqbal Gondal,
    According to your description, since the issue regards training and certification,
     I suggest you post the question in the Learning forums at
    http://social.technet.microsoft.com/Forums/en-US/home?category=learning. It is appropriate and more experts will assist you. If you have a specific technical question about Microsoft SQL Server,
     you can visit and post your question on  the SQL Server Forum.
    There is some detail about Exam 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012, you can review the following articles.
    Exam content can be found here:
    http://www.microsoft.com/learning/en-us/exam-70-466.aspx
    http://borntolearn.mslearn.net/certification/database/w/wiki/525.466-implementing-data-models-and-reports-with-microsoft-sql-server-2012.aspx#fbid=Mn-t6aRhs-H
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to pass system date and time with tabular from in Update only Mode.

    Dear Friends,
    i have created tabular form with UPDATE Only .here i am assigning work to another multiple users.i want to insert system date and time when i assign work to multiple users.
    How can i insert system date and time into table using tabular form in Update Only Mode.
    beacuse i have pass in default system date it's working only with add row button.
    How can i pass system date and time in update mode in tabular form.
    Thanks

    Hi,
    You just create a trigger on the table on which you build your tabular form:
    e.g:
    CREATE OR REPLACE TRIGGER  "AUDITING"
    before insert or update on "MYTABLE"
    for each row
    begin
        if inserting then
            :new.created_on := localtimestamp;
            :new.created_by := nvl(v('APP_USER'),user);
        elsif updating then
            :new.updated_on := localtimestamp;
            :new.updated_by := nvl(v('APP_USER'),user);
        end if;
    end;Regards,
    Fateh

  • Changing Date and Time with dng files

    My camera settings for date and time were wrong.
    So some of my files in Lightroom 3 have the wrong dates.
    This morning I downloaded Photoinfo 2.0.1 but it doesn't seem to want to accept "dng" files to change the info.
    It will accept "jpeg" files no problem.
    Can anyone help me with this.
    Thanks

    Open the Catalog Setting panel (Lightroom menu on Mac and Edit menu on Windows). Configure the Metadata>Exif tab as shown in red on screenshot. Select your images and choose Save Metadata to File (Ctrl/Cmd+S) from Metadata menu (same menu as Edit Capture time. This will save the date/time changes back into the file rather than just the catalog.

  • Adjusting Date and Time with Video

    Does anyone know of a way (or work-around) to change the date and time of video in Aperture?  If not in Aperture, perhaps in a different application.
    Thanks,
    Mac

    And I was hoping that the new Aperture Version 3.2.2 would solve this problem, but no luck - it is still not possible.
    I tried to use the commandline tool"exiftool" as a work-around, since the "Date" tag is part of the exif tags, but when I type "exiftool" in the Terminal window to see, if it would be possibe to edit the "Date" tag of a video, I see the following list of capabilities:
           File Types
             −−−−−−−−−−−−+−−−−−−−−−−−−−+−−−−−−−−−−−−−+−−−−−−−−−−−−−+−−−−−−−−−−−−
             3FR   r     | DVB   r      | M4A/V r     | PBM   r/w   | RWZ   r
             3G2   r     | DYLIB r     | MEF   r/w   | PDF   r/w   | RM    r
             3GP   r     | EIP   r       | MIE   r/w/c | PEF   r/w   | SO    r
             ACR   r     | EPS   r/w  | MIFF  r     | PFA   r     | SR2   r/w
             AFM   r     | ERF   r/w  | MKA   r     | PFB   r     | SRF   r
             AI    r/w   | EXE   r      | MKS   r     | PFM   r     | SRW   r/w
             AIFF  r     | EXIF  r/w/c | MKV   r     | PGF   r     | SVG   r
             APE   r     | F4A/V r     | MNG   r/w   | PGM   r/w   | SWF   r
             ARW   r/w   | FLA   r     | MOS   r/w   | PICT  r     | THM   r/w
             ASF   r     | FLAC  r     | MOV   r     | PMP   r     | TIFF  r/w
             AVI   r     | FLV   r     | MP3   r     | PNG   r/w   | TTC   r
             BMP   r     | FPX   r     | MP4   r     | PPM   r/w   | TTF   r
             BTF   r     | GIF   r/w   | MPC   r     | PPT   r     | VRD   r/w/c
             CHM   r     | GZ    r     | MPG   r     | PPTX  r     | VSD   r
             COS   r     | HDP   r/w   | MPO   r/w   | PS    r/w   | WAV   r
             CR2   r/w   | HTML  r     | MQV   r     | PSB   r/w   | WDP   r/w
             CRW   r/w   | ICC   r/w/c | MRW   r/w   | PSD   r/w   | WEBP  r
             CS1   r/w   | IIQ   r/w   | MXF   r     | PSP   r     | WEBM  r
             DCM   r     | IND   r/w   | NEF   r/w   | QTIF  r     | WMA   r
             DCP   r/w   | ITC   r     | NRW   r/w   | RA    r     | WMV   r
    All movie formats are listed as "r" (read only, not read/write), so even with "exiftool" you will not be able to modify the date, unless you try brute force and edit your movie in iMovie or any other movie editor and render a new movie with your computer's date and time  set to a  different time.

  • How to read date and time with Oracle_Loader (10g)

    ip pc username date time
    1.1.1.1 WS1 test 2000/01/01 01:01:01
    I am trying to read the date and time from data formatted as above from a .txt file.
    create TABLE test (IP char(20), OCID char(15), ID char(30), date_logon date, time_logon date)
    ORGANIZATION EXTERNAL (TYPE ORACLE_loader DEFAULT DIRECTORY phonebook
    ACCESS PARAMETERS (FIELDS TERMINATED BY WHITESPACE
    (IP char(20),
    OCID char(15),
    ID char(30),
    date_logon char(30) DATE_FORMAT DATE MASK "yyyy/mm/dd",
    time_logon char(30) date_FORMAT date MASK "hh24:mi:ss"))
    LOCATION ('test.log'));
    However, my external table returns a date (2007-05-01) AND the time for the time_logon column (e.g. 2007-05-01 01:01:01) . I just want the time (e.g. 01:01:01).
    What am I doing wrong?
    *I tried: date_logon char(30) DATE_FORMAT DATE MASK "yyyy/mm/dd hh24:mi:ss", reading both the date and time at the same time, but it doesn't work.
    Thanks.

    Justin, thank you so much for your help.
    When I try:
    SELECT a.ip, a.ocid, a.id, TO_CHAR( a.date_logon, 'DD-MON-YYYY HH24:MI:SS' )
    FROM test a
    date_logon entries are all dd-mon-yyyy and 00:00:00 (i.e. no time was stored).
    I don't have control over the text file, so I don't think I can make any changes to the formatting.
    I tried to declare the column as 'timestamp':
    date_logon char(60) DATE_FORMAT timestamp MASK "yyyy/mm/dd hh24:mi:ss",
    but time is still displayed as 00:00:00:000.... which leads me to suspect that the culprit is the space between date and time in the text file.
    Say if I have 2007/05/25 and 2007/05/01 16:19:23 in two separate date columns. Is it possible to grab the time from the second column and append it to the first column (while still retaining the DATE property, i.e. 2007/05/25 16:19:23).
    Thanks!

  • Date Problem in Java with MySql

    Hello
    I am using Java with Mysql.I want to enter date in some in my format(YYYY:MM:DD:HH:MM:SS), this thing i have convert using format class and format class return date in String and iwwnat to insert this value in MySQL Table,So i want to know how can i convert String value in Date for Mysql is their inbuild function for converting string into date in mysql.
    Regards
    Anupam S

    Use PreparedStatement and SimpleDateFormat classes
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=%2BPreparedStatement+%2BSimpleDateFormat+&qp=siteforumid%3Ajava48&chooseCat=allJava&col=developer-forums&site=dev

  • How to combine date column and time column?

    Hello all,
    The question is pretty much as it says. I have two columns of data, one is in format 8/28/2014 and the other is in format 10:00 PM.  Both are formatted as text because I got frustrated with numbers forcing me to only format things as Date AND Time.  I want to be able to sort the list in chronological order, and I can't sub-sort columns. So, how can I combine them into one date+time column so that I can sort?
    Thanks!
    -acousticguitar7

    AG,
    If your Date is in A and your Time is in B, the formula to combine them would be:
    =A+TIMEVALUE(B)
    Jerry

  • Continuous data send and receive with unknown source

    When I connect my ipad to the lightning cable, no matter if it is connected to PC or it is going to be charged, if the wifi is on, it will start sending and receiving data continuously and with a high speed.
    I want to stop this thing from happening because it nearly consumed all of my internet account
    What is the reason?

    >
    >
    Did you download from
    http://java.sun.com/products/javacomm/
    If so, there is an example in
    commapi\samples\SerialDemo
    but this only sends characters back and forth.
    You will have to create a design to handle the send
    and recieve. What will the data be?
    Will you transmit files? Maybe you need to create
    something like XMODEM.
    Will you transmit media streams? Maybe you should look
    at JTAPI
    http://java.sun.com/products/jtapi/
    (which is only a definition, or a real reference
    implementation like:
    http://gjtapi.sourceforge.net/
    ==================================================================I'm sending information from a client for a credit verification, This information is sent in a variable, and then the modem receives a file with the results.

  • Sync date and time with NTP??

    Hi all,
    I'm looking to figure out how my Solaris 10 sync is date/time.
    I've looked in /etc/inet/ntp.conf and the file doesn't exist. I've looked at the "svc -l ntp" and here's what I got
    fmri         svc:/network/ntp:default
    name         Network Time Protocol (NTP)
    enabled      false
    state        disabled
    next_state   none
    state_time   Tue May 19 23:35:40 2009
    restarter    svc:/system/svc/restarter:default
    dependency   require_all/error file://localhost/usr/sbin/ntpq (online) file://localhost/usr/sbin/ntpdate (online)
    dependency   require_any/error svc:/network/service (online)My question is where else can it be set??
    Thx

    So I finally figured out how the time was set.
    My bad. I was a little bit confuse on some comamnd switching from BSD, Linux and Solaris.
    There's an entry in crontab (didn't remember that to see crontab it was crontab -l) so there is a cron for ntpdate command.
    Thanx all for trying to help me.

  • Help! How to retrive the date and time from MySQL 'datetime' type

    In my MySQL database, I have stored a data type 'DATETIME' as 20070412093012 which is interpreted as 2007-04-12 09:30:12, How to using Java method to retrive it from data base???
    like resultSet.getDate('datetime')????or what is the method?

    Have a look at the API documentation for ResultSet. Which of the methods documented there do you think might be what you need? If you can't tell which is the right one, then post your candidates here and ask a question about them.

  • HOW CAN I ACQUIRE AND DEPLOY DATA IN REAL TIME WITH DAQ 6024E?

    HI ENGINEER,
    I'M PROGRAMING AN APLICATION WHICH I NEED ACUIRING AND DEPLOYING AN ANALOGOUS SIGNAL IN REAL TIME.
    I HAVE:
    LabVIEW 7.0
    WINDOWS 2000
    DAQ CARD 6024E
    THE SIGNAL I WANT TO ACQUIRE IS 0-10 Vcd FROM A SENSOR, THE PROBLEM I HAVE, IS THAT I AM ACQUIERING THE DATA AND IT SEEM THAT THEY ARE UPDATING EACH SECOND, BUT I HAVE BEEN MOVING THE PARAMETERS SUCH AS TASK TIMING IN THE DAQ ASSISTANT VI AND NOTHING HAPPENS.
    CAN YOU TELL ME WHICH PARAMETERS I HAVE TO MOVE TO AQUIRE AND DEPLOY DATA IN REAL TIME

    Hi barron,
    If you want to see the data update quicker, you can decrease the value in the "Samples to Read" field of your DAQ Assistant. This number controls when data is transferred from the DAQ buffer to the PC. If the sampling frequency remains the same, but this field decreases, it means the buffered data will be returned more quickly.
    Hope this helps.
    Thanks,
    Lesley Y.

  • Creating a folder on my HD with /current/ date and time with iCal

    hi all.
    new user here trying to tighten things up over here.
    can anyone advise me as to whether there is a way to do this with iCal? i'd like to have a folder like this so i can see it easily on my various external backup drives and basically know very quickly how recent the update is that i am looking at.
    also, is there a lot more to iCal than simply keeping my calendars updated and synce and possibly posted to the web or shared with others or whatever? i am loving the sync ability and the sonorous alerts but i am wondering if i can/need to read up on additional functionalities in iCal that keep me organized.
    TIA

    It's not clear what tool you are using to automate the process.
    At least one of the 3rd-party Crystal Reports Desktop Scheduling tools listed at: http://www.kenhamady.com/bookmarks.html provides that functionality.  It allows you to use Crystal Reports fields or formulas to dynamically set the export file path and name.

  • Data acquisition and generation with PCI-MIO-16E-4 card help!!!!

    Hello,
    I'm using a PCI-MIO-16E-4 card with labview7 (in using DAQmx)and I
    would like to draw a frequency response.
    My problem is: my program can run correctly in low frequency but, it
    can't work correctly in high frequency (after 2KHz the signal is
    false).
    For verifying my program: I only try to generate and acquire a sweep
    sine. I constate after 2KHz the sine I read dosn't resemble to a sine
    I wrote.
    Can you say me where is the problem?
    Thank you.
    Le Trong Thao.

    "Dr. Imad" wrote in message news:<[email protected]>...
    > my understanding is that you are generating a sine wave (on one of the
    > anlogoutput channels) and you are trying to read the signal.
    > Since you can verify the signal at low frequency, but not at high
    > frequency, it looks like you should increase the scan rate of the data
    > acquistion (if you can, set it to 10 times the signal frequency)
    > You can also use an oscilloscope to verify the signal is what you
    > really generated.
    Thank you for your response.
    I've tried to do it, and I've tried several other possibilities but it
    doesn't work correctly.
    In fact, I think the problem is in my program. Do you have a program
    that works correctly? I f
    ound examples in the help but they don't run
    correctly.
    Le Trong Thao.

Maybe you are looking for

  • SharePoint Farm 2013 Topology in Production

    In our farm, Current total users are 150 and unique users hardly 30+. Data size we have is currently 50 GB. Since this data clearly tells very less no of users and less hits and less size, how many servers you recommend in farm? Do you recommend havi

  • How to Create a batch file to display and count specific words in log file

    Hi All, I have requirement Program to be written that will go through a log file and look for following key words. Unexpected Essbase error And also it will count the # of times the word error appear in a log file. You may use batch file or Perl scri

  • External Hard Drive not showing up on iMac retina 5K

    Hi, I have an external hard disk WD Passport 500Go. It does not appear on my iMac Retina but it appears correctly on my macBook Pro. I have already tried several solutions but nothing seems to work : Not visible on the finder Not visible on disk util

  • Reprot for customer outstanding

    Dear experts i want to generate one report which contains following fields 1. invoice number 2.invoice date 3.customer name 4.total ammount 5.payment terms 6.outstanding payment please give me right solution for this

  • Transaction code to see the archive file logical path

    Hello, Some data is archived. In which transaction we can get the archive file logical path. ( Just like transaction al11 for sap directories ) Thanks.. Vijay