All pastes #991149 Raw Edit

Untitled

public text v1 · immutable
#991149 ·published 2008-04-20 19:19 UTC
rendered paste body
//insert_student.php

<?php
include ("opendb.php");

$date = date(YYYY-MM-DD);

$sql = "INSERT INTO STUDENTS
(student_first_name, student_last_name, student_date_of_birth)
VALUES
('First Woot', 'Last Woot', '".$date."')";


mysql_query($sql,$mysql_conn) or die ("Wrong: ".mysql_error());


mysql_close( $mysql_conn);
?>