Updating a record on a certain date

Hi,
I have a little problem with updating a record on a certain
date specified in the same table.
OK so i have a table called 'users' and in that table i have
the following fields:
AdID
Username
AdStatus
AdStartDate
AdPeriod
(and a few more but i've listed the important ones here)
What i have done is, when a user places an AD, it inserts
into the table the user's username, the ad status (e.g. Active,
Suspended ect), the day on which the advert was placed, the period
the ad has been placed for (e.g 6 months, 1 yr, 2yr ect).
What i would like to do is to create an auntomatic function
that checks the date in the table, and see if it is 6 months, 1yr,
2yr old or whatever and if it is, update the status to suspended.
Problem is, i dont know how :(
I thought about adding a countdown script and when it reaches
Zero, run a stored procedure but i dont know anything about them.
Could somebody PLEASE help me this is driving me mad. I've
been trying all kinds of ways but no luck. Anyone with the 'know
how' that can point me in the right direction would be a BIG start.
I am using ASP.VB and MYSQL 5.
Thankyou in Advance,
Adam

muzicmistro wrote:
> What i have done is, when a user places an AD, it
inserts into the table the
> user's username, the ad status (e.g. Active, Suspended
ect), the day on which
> the advert was placed, the period the ad has been placed
for (e.g 6 months, 1
> yr, 2yr ect).
>
> I am using ASP.VB and MYSQL 5.
I can't help you with the ASP side of it, but since you're
using MySQL,
you could simplify your problem by adopting a different
approach. Add an
expiry_date column (DATETIME type) and use the MySQL
DATE_ADD() function
to insert the date on which the ad expires. If your minimum
period is
one month, you can simply use MONTH as the the period in
DATE_ADD, and
use a variable to change the number of months (e.g., 24 for 2
years).
INSERT INTO myTable (expiry_date, other_cols)
VALUES(DATE_ADD(NOW(), INTERVAL x MONTH), other_vals)
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Rather than have an active/expired column, just use the
expiry_date and
compare it with the current date. If it's greater, the ad is
still
active. If it's less, the ad has expired.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Similar Messages

  • How to only update existing records when loading master data ?

    Hello experts, I need your lights one more time.
    Here is my need :
    I have created an infoobject (IO) which is a very simple version of 0material, let's call it Znewmat --> Znewmat has material type and trademark as attributes, those two fields are available in 2 different datasources :
    - 0MATERIAL_ATTR for material type (field MTART)
    - 0MAT_SALES_ATTR for trademark (field MVGR2)
    When loading my new IO from 0MATERIAL_ATTR I use a filter (at DTP level) to get only a few material types (I get something like 1000 records),
    here is my issue : when I load from 0MAT_SALES_ATTR the field "material type" is not available to keep the same filter as for 0MATERIAL_ATTR and existing records are updated with the trademark, but I also get 5000 records I don't need, and my master data is "polluated" with useless lines.
    *and my question : is there a way while performing the second loading to ONLY UPDATE EXISTING RECORDS AND NOT ADD ANY
    NEW RECORDS ? (i didn't find anything in main options of my DTP)*
    (I'd like to avoid the solution to update the 0MAT_SALES_ATTR datasource to add the missing field)
    Thanks in advance for any help, points will be distributed.
    Guillaume P.
    Still no idea ?

    in the start routine of transformation from 0MAT_SALES_ATTR to znewmat do the following:
    select materials from /BIC/PZNEWMAT into i_mat
    for all entries in source_package where material eq source_package-material.
    loop at source_package.
    p_ind = sy-tabix.
    read table i_mat with key material = source_package-material.
    if sy-subrc ne 0.
    delete i_mat index p_ind.
    endif.
    this way you'll only update records that have previously been loaded by 0MATERIAL_ATTR DS
    loading sequence:
    first load ZNEWMAT from 0MATERIAL_ATTR. then activate ZNEWMAT. then load 0MAT_SALES_ATTR to ZNEWMAT.
    M.

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Updating multiple records based on process date

    Hello,
    I need to change the value of multiple records in one table if a condition is met for each record in another table when the application is run.
    I have an Employee table containing employee names that also has a status field where the values are either "Active" or "Disabled".
    There is a form in the application with an employee name select list using a dynamic LOV based on the Employee table. The LOV is restricted to "Active" employees. The form inserts employee-related transactions with the current date into the Transaction table.
    I want to automatically update the status of all employees in the Employee table from "Active" to "Disabled" where there have been no transactions in the Transaction table for that employee for more than 2 months. This will allow me to exclude them from the dynamic LOV based on the Employee table.
    Any suggestions are greatly appreciated.
    Thank you,
    Matt

    Hi Matt
    Something like this?
    UPDATE employees
    SET status = 'Disabled'
    WHERE status = 'Active'
    AND NOT EXISTS(SELECT 'X'
                                      FROM transactions
                                      WHERE emp_id = trn_emp_id
                                     AND tran_date >= SYSDATE - INTERVAL '60' DAY);Let me know if I've misunderstood...
    Cheers
    Ben

  • Using field highlighter to highlight records with a certain date range

    I've been asked to highlight a field based on the fact that the "Submit" date is greater than a certain value. The problem is that there's no way to pre-determine what that value is. It changes.
    The user wants to be prompted for the value when he runs the report. That value would then be stored as a variable which would be used in the script to determine if the field should be highlighted.
    Does anyone know if there a way to do this?

    Thanks for your quick reply Raghavendra.
    How does that prompt the submitter for the Date value he wants to use and the date to compare the submit date against?
    Here's the scenario.
    A user wants to highlight all "new" tickets submitted since last time he ran the report. It's not like he runs the report every friday which would make it easy because then you'd compare the submit date to "today-7" so-to-speak. He runs the report randomly. He wants to be prompted for a date before the report runs to replace "today-7".
    Could you help explain how to prompt the use for that date.

  • Infostructure S502 not updated after certain date

    There is an infostructure S502. It is not updated after a certain date.
    It should be updated after saving in C011N.
    This problem seems to have propped up after upgrade to ECC 6.0. Before that it was working fine.

    I have tried a lot but still S502 is not properly updated. Basically the field for date i.e SPTAG is empty. Due to this when we try to select from MCRQ based on dates, no data is selected.
    Is it because of some setting in MC23?

  • Dear Customer,  It hase come to our attention that your account billing Information records are out of date. That requires you to update your Billing Information. Failure to update your records will result in account termination records...  Click on

    Dear Customer,
    It hase come to our attention that your account billing Information records are out of date. That requires you to update your Billing Information. Failure to update your records will result in account termination records...
    Click on the reference link below and enter your login Information on the following page to confirm your Billing Information records..
    Verify Now >
    Wondering why you got this email?
    It's sent when someone adds or changes a contact email address for an Apple ID account. If you didn't do this, don't worry. Your email address cannot be used as a contact address for an Apple ID without your verification.
    For more information, see our frequently asked questions.
    Thanks,
    Apple Customer Support
    TM and copyright © 2014 Apple Inc. Apple Sales International, Hollyhill Industrial Estate, Cork, Ireland. Company Registration number: 15719. VAT number: IE6554690W.
    All Rights Reserved / Keep Informed / Privacy Policy / My Apple ID
    Anyone else get this today?
    And yep i know this message doesn't go here however the ability to post in general postings to most viewers is lost to me in the ridicules way apple setup there support

    It's phishing. Forward it to [email protected] and then delete it.
    (118880)

  • I have an iPhone 4.  I unplugged my phone during an update and have lost all pictures and videos from the last year.  Is there any way to restore from a certain date to recover?

    I have an iPhone 4.  I unplugged my phone during an update and have lost all pictures, text messages and videos from the last year.  Is there any way to restore from a certain date to recover them?

    If you have a current backup you can restore your phone to that backup.   http://support.apple.com/kb/HT1766

  • Is it possible to get the updated table records based on date & time.

    Is it possible to get the updated table records based on date & time in oracle.
    Thanks in advance.

    no, actually i am asking update records using 'UPDATE
    or DELETE' statement, but not insert statement.
    Is it possible?
    I think we can do using trigger on table, but problem
    is if i am having 20 tables means i have to write 20
    trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
    Niall Litchfield
    http://www.orawin.info/

  • Unique data record means you can't  update a record from ECC with same key.

    Unique data record means you can't  update a record from ECC with same key fileds right?
    Details: For example i have two requests Req1 and Req2 in DSO with unique data record setting checked. on day one Req1 has a filed quantity with value 10 in Active data table. On day two Req1 can not be overwitten from ECC with Req2 with the same key fields but different value 20 in the filed quantity because of the Unique data record settings. finally the delta load fails from ECC going to DSO because of this setting. is it right?
    I think we can only use unique record setting going from DSO to cube right?
    Please give me a simple scenario in which we can use this setting.
    I already search the threads and will assign points only to valuable information.
    Thanks in advance.
    York

    Hi Les,
    Unique Data Records:
    With the Unique Data Records indicator, you determine whether only unique data records are to be updated to the ODS object. This means that you cannot load a data record into the ODS object the key combination for which already exists in the system – otherwise a termination occurs. Only use this setting when you are sure that only unique data records are to be loaded into the ODS object (for example, single documents). A typical application of this is in the loading of mass data. It improves the load performance.
    Hope it Helps
    Srini

  • Updating to InfoCube IC_TEST : 2 - 0 Data Records

    Hi friends i have to create dtp with flat file and loading data some errors are there
    plz give me solution.
    Request 25269
    Process Request
    Data Package 1: Errors During Processing
    Updating to InfoCube IC_TEST : 2 -> 0 Data Records
    Messages for data records saved; request is red acc. to configuration

    Hi Prasana,
    Please provide the error message?
    check in the monitor tab for the error message.
    Regards,
    Ravi Kanth

  • How to change bucket capacity for a certain date range (duration)?

    Hi,
    I need to update the bucket capacities of Resource at Vendor location in APO live cache for a particular period using BAPI_RSSRVAPS_CHANGEMULTI.
    Here I am executing BAPI by passing -
    Import Parameters:
    LOGICAL_SYSTEM
    COMMIT_CONTROL
    PLANNING_VERSION
    Tables:
    RESOURCE_HEAD
    (RESOURCE = Resource  " Test123
    LOCATION = Vendor Number/Loctaion
    CAPACITY_A = 5000.000
    NUM_OF_PERIODS = 001
    PERIOD = 02    " Day Wise
    UTIL_BUCKET = 100.000 )
    RESOURCE_HEAD_X
    (All corresponding fields X)
    RESOURCE_QUANMODEL
    (RESOURCE = Resource  " Test123
    VERSION = 01
    ENDDA = 02/25/2011
    BEGDA = 02/21/2011
    QUANMODEL = 8000 )
    RESOURCE_QUANMODEL_X
    (All corresponding fields X)
    [ I have a capacity variance:
    Resource = Test123; Capacity Varient = 01; Valid From = 02/21/2011
    Valid To = 02/25/2011; Bucket Util Rate = 100.000; Qty/Rate definition = 8000 ]
    Now, while I execute /SAPAPO/RES01 to display Capacity for that resource-Location-PlanningVersion, Its showing that 'Bucket Capacity' and 'SNP Bucket Capacity' get changed into 5000. But this change happend for all the days and not only for the duration I passed into Bapi (From BEGDA to ENDDA).
    How to change bucket capacity for a certain date range (duration)? Any help please.
    Thanks
    Roy

    I did it myself. Hence closing the thread.
    Solution:
    1. Get RESUID from /SAPAPO/RESKEY table by passing Resource as NAME.
    2. Call Function Module /SAPAPO/CRES_QUANPROF_UPDATE
    3. Call Function Module /SAPAPO/CRES_SAVE_FROM_BT
    For further help, change manually a single record in the 'capacity profile' in TXN /SAPAPO/RES01 and debug both the FM mentioned above.
    BR
    Roy

  • Error while updating a record in MS Access

    Im new to coldfusion and am running into a problem while
    trying to update a record in a MS Access table.
    I have a MS Access table where the primary key is a
    auto-number long integer field named jobid.
    I have an edit form where info can be changed then saved. A
    hidden form field named jobid holds the records primary key field
    value for the record being edited. When submitted this is what
    happens:
    I use a basic SQL UPDATE statement but I get the error "Data
    type mismatch in criteria expression"
    Some code:
    <cfset nJobId=Int(Val(FORM.jobid))>
    *dont know if i need the above line but using #FORM.jobid#
    in the WHERE clause below didnt work either
    <cfquery datasource="lrs">
    UPDATE jobs SET
    status='#FORM.status#',
    offer='#FORM.offer#',
    postdate="#CreateODBCDate(FORM.postdate)#",
    jobtype=#FORM.jobtype#,
    jobtitle='#FORM.jobtitle#',
    ..etc...
    WHERE jobid=#nJobId#
    The WHERE clause is where the error occurs with "Data type
    mismatch in criteria expression"
    After a few times with that i changed the where clause to
    simply "WHERE jobid=1" as this record id does exist, but it has the
    same error.
    I then tried changing the where clause to
    WHERE jobid=<cfqueryparam cfsqltype="cf_sql_bigint"
    value="#FORM.jobid#">
    and there it "appears" to work, but the record is not
    actually updated. No changes are made to the table though no error
    is thrown.
    Im missing something here... why wont the record update
    ?

    The data type mismatch isn't necessarily in your where
    clause. I'm guessing that it's the quotes around the create
    odbcdate function.
    use of cfqueryparam will solve a lot of these problems for
    you.

  • Getting timeout error while updating a record from c#

    Hi,
    I have around 30k records in a tables. When I update that record inside the Transaction (Enterprise Data Library, c#) , it takes long time and throws timeout error.
    But I am able to update the same record via Toad.
    In the morning I tried same updating the record, it works without any change in the code or script.+
    is it due table lock or db related issue? please adivse, how to resolve if occurs again.
    anand

    Code:
    private static void Save()
    using (DBTransactionManager dbTransactionManager = new DBTransactionManager())
    try
    DataTableDAL.Instance.ExecuteDML("Update Voyage SET BallastBonus = 30000 WHERE ID = 'AE53B610BEA743EC8AFBAED0C8349BF8';");
    //commit database
    dbTransactionManager.Commit();
    catch
    dbTransactionManager.RollBack();
    throw;
    Table
    Column Name     ID     Pk     Null?     Data Type     Default     Histogram     Encryption Alg     Salt
    ID     1     1     N     NVARCHAR2 (32)          None          
    CALCNUMBER     2          N     NUMBER (10)          None          
    CURRENCYID     3          N     NVARCHAR2 (32)          Frequency          
    CALCTYPE     4          N     NUMBER (5)          Frequency          
    ESTIMATEDESCRIPTION     5          Y     NVARCHAR2 (200)          None          
    ESTIMATEGROUPDESCRIPTION     6          Y     NVARCHAR2 (200)          None          
    BALLASTBONUS     7          Y     NUMBER (12,2)          None          
    BALLASTBONUSCOMMPCT     8          Y     NUMBER (6,3)          None          
    ISESTIMATE     9          N     NUMBER (1)          None          
    ADDITIONALSTEAMVALUE     10          Y     NUMBER (8,4)          None          
    ISADDITIONALSTEAMPCT     11          Y     NUMBER (1)          None          
    ADDITIONALPORTVALUE     12          Y     NUMBER (8,4)          None          
    ISADDITIONALPORTPCT     13          Y     NUMBER (1)          None          
    CREATEDBY     14          N     NVARCHAR2 (32)          Frequency          
    CREATEDDATE     15          N     DATE          None          
    UPDATEDBY     16          Y     NVARCHAR2 (32)          None          
    UPDATEDDATE     17          Y     DATE          None          
    LUMPSUMCARGOCOST     18          Y     NUMBER (1)          None          
    BUNKERPRICEMETHOD     19          Y     VARCHAR2 (30 Byte)          None          
    INCCONTCALCRESULT     20          Y     NUMBER (1)          None          
    FINAL_EST     21          Y     NUMBER          None          
    SPOT_VOYAGE     22          Y     NUMBER (1)          None          
    ISRUNCOSTEDIT     23          Y     NUMBER (1)          None          
    Index
    Table doesnt have any index, except primary key index.
    Total Records
    35,000
    Hope this input might sufficient to help me.

  • Can't update mysql records from a web page

    Hi everybody,
    I am beginning with Dreamweaver CS5.
    I followed a video tutorial on how to visually design a data entry/update web page for a mysql database using server behaviors.
    My problem is that I was able to insert records and see inserted records but when I try to update a record it doesn't work.
    I don't get any error message, it just redirects me to the listing page as it's supposed to but doesn't take into account the changes I made.
    Below are 2 printscreens along with the corresponding code.
    Can someone help me please?
    Records list web page :
    Records list code :
    <?php require_once('Connections/dw_nouvellenaissance.php'); ?>
    <?php
    // *** Display of registered users
    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;
    mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users_videostream = "SELECT * FROM videostream_users";
    $users_videostream = mysql_query($query_users_videostream, $dw_nouvellenaissance) or die(mysql_error());
    $row_users_videostream = mysql_fetch_assoc($users_videostream);
    $totalRows_users_videostream = mysql_num_rows($users_videostream);mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users_videostream = "SELECT * FROM videostream_users";
    $users_videostream = mysql_query($query_users_videostream, $dw_nouvellenaissance) or die(mysql_error());
    $row_users_videostream = mysql_fetch_assoc($users_videostream);
    $totalRows_users_videostream = mysql_num_rows($users_videostream);
    ?>
    <!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>Videostream Users List</title>
    </head>
    <body>
    <h3 align="center">Videostream Users List </h3>
    <table  align="center" width="75%" border="1" cellspacing="0" cellpadding="0">
    <tr align="center" BGCOLOR="#99CCFF">
          <th>Surname</th>
          <th>Name</th>
          <th>City</th>
          <th>UserID</th>
          <th>Password</th>
          <th>Edit</th>
          <th>Delete</th>
        </tr>
    <?php do { ?>
        <tr align="center">
          <td><?php echo $row_users_videostream['Nom'];?></td>
          <td><?php echo $row_users_videostream['Prenom'];?></td>
          <td><?php echo $row_users_videostream['Ville'];?></td>
          <td><?php echo $row_users_videostream['user_name'];?></td>
          <td><?php echo $row_users_videostream['user_password'];?></td>
          <td><a href="modifyuser.php?User_id=<?php echo $row_users_videostream['User_id']; ?>"><img src="images/edit.png" alt="modifier" width="15" height="15" hspace="5" /></a>
          <td><a href="deleteuser.php?User_id=<?php echo $row_users_videostream['User_id']; ?>"><img src="images/delete.png" alt="supprimer" width="15" height="15" hspace="5" /></a></td>
        </tr>
    <?php } while ($row_users_videostream = mysql_fetch_assoc($users_videostream)); ?>
    </table>
    <p> </p>
    <p align="center"><a href="formlogoutadmin.php">Deconnexion</a></p>
    </body>
    </html>
    </body>
    </html>
    <?php
    mysql_free_result($users_videostream);
    ?>
    Udate records web page:
    Update records code:
    <?php require_once('Connections/dw_nouvellenaissance.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;
    //*** Update User
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "usersform")) {
      $updateSQL = sprintf("UPDATE videostream_users SET Nom=%s, Prenom=%s, Ville=%s, user_name=%s, user_password=%s WHERE User_id=%s",
                           GetSQLValueString($_POST['Nom'], "text"),
                           GetSQLValueString($_POST['Prenom'], "text"),
                           GetSQLValueString($_POST['Ville'], "text"),
                           GetSQLValueString($_POST['user_name'], "text"),
                           GetSQLValueString($_POST['user_password'], "text"),
                           GetSQLValueString($_POST['User_id'], "int"));
      mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
      $Result1 = mysql_query($updateSQL, $dw_nouvellenaissance) or die(mysql_error());
      $updateGoTo = "showusers.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $colname_users = "-1";
    if (isset($_GET['User_id'])) {
      $colname_users = $_GET['User_id'];
    mysql_select_db($database_dw_nouvellenaissance, $dw_nouvellenaissance);
    $query_users = sprintf("SELECT * FROM videostream_users WHERE User_id = %s", GetSQLValueString($colname_users, "int"));
    $users = mysql_query($query_users, $dw_nouvellenaissance) or die(mysql_error());
    $row_users = mysql_fetch_assoc($users);
    $totalRows_users = mysql_num_rows($users);
    ?>
    <!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=charset=iso-8859-15" />
    <title>Modify User</title>
    </head>
    <body>
    <h1>Welcome Daniel</h1>
    <h3 align="left">Please modify user fields then click OK</h3>
    <form action="<?php echo $editFormAction; ?>" method="POST" name="usersform" id="usersform">
    <input name="User_id" type="hidden" value="" />
    <table align="left" width="50%">
      <tr align="left">
      <th>Surname: </th><td><input name="Nom" type="text" id="Nom" value="<?php echo $row_users['Nom']; ?>" /></td>
    </tr>
    <tr align="left">
      <th>Name :</th><td><input name="Prenom" type="text" id="Prenom" value="<?php echo $row_users['Prenom']; ?>" /></td>
    </tr>
    <tr align="left">
       <th>City: </th><td><input name="Ville" type="text" id="Ville" value="<?php echo $row_users['Ville']; ?>" /></td>
    </tr>
    <tr align="left">
      <th>User ID:</th><td><input name="user_name" type="text" id="user_name" value="<?php echo $row_users['user_name']; ?>" /></td>
    </tr>
    <tr align="left">
    <th>Password:</th><td><input name="user_password" type="text" id="user_password" value="<?php echo $row_users['user_password']; ?>" /></td>
    </tr>
    <tr align="left">
    <td> </td><td align="left"><input type="submit" name="valider" value="Update" /></td>
    </tr>
    </table>
    <input type="hidden" name="MM_update" value="usersform" />
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($users);
    ?>

    Daniel Cronin,
    This link has information on preparing movies for viewing online by an iPhone:
    https://developer.apple.com/iphone/devcenter/designingcontent.html
    Click on the drop down menu for "Ensure a Great Audio and Video Experience".
    You may need to register for Apple Developer Connection in order to view that information.
    Hope this helps,
    Nathan C.

Maybe you are looking for