Hi Guys
Im just starting out learning php and im trying to INSERT into a database, i have watched tutorials and such but nothing is working. Its probs something really simple but i just cannot suss it, so any help would be great and thankyou in advance. heres my code so far
[php]<?php
if (isset($_POST[‘submitted’])) {
include('Fault_Report_Script.php');
}
$pcid = $_POST['pcid'];
$roomno = $_POST['roomno'];
$studentid = $_POST['studentid'];
$email = $_POST['email'];
$faulttype = $_POST['faulttype'];
$report = $_POST['report'];
$sqlinsert = "INSERT INTO faults (pcid, roomno, studentid, email, faulttype, report) VALUES ('$pcid', '$roomno', '$studentid', '$email', '$faulttype', '$report')";
?>[/php]
This Script calls up another called ‘Fault_Report_Script.php’ which connects to server and database. Thanks for any help.
Karl