topical media & game development

talk show tell print

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



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

  
  ?>
  
  <?
  // Build the INSERT statement
  sqlString = "INSERT INTO Transactions (OrderID, DVDID, DateOut, DateDue) VALUES (orderId, dvdId, 'dateOut', 'dateDue')";
  
  // Execute the INSERT 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.