topical media & game development

talk show tell print

basic-mysql-17-PHPApp-update.php / php



  <?
  
***************************************************************************** Author: Geoff Moes and Robert Sheldon Project: Begining MySQL - Chapter 17 Module: update.php Date: 12/10/04 Description: Include file that contains the logic for the update functionality. *****************************************************************************

  
  ?>
  
  <?
  // Build the UPDATE statement
  sqlString = "UPDATE Transactions SET OrderID = orderId, DVDID = dvdId, DateOut = 'dateOut', DateDue = 'dateDue', DateIn = 'dateIn' WHERE TransID = transactionId";
  
  // Execute the UPDATE statement
  mysql_query(sqlString)
     or die("Error in query sqlString " . mysql_error());
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.