roseisfly18
n00b
- Joined
- Feb 28, 2016
- Messages
- 1
<?php
include 'conn.php';
$affected_rows = $conn->exec("INSERT into tbl_ideas1 (week_no,category,problem,solution,id_no) Values ('".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["id_no"]."')");
$affected_rows = $conn->exec("Insert into tbl_sub (idea_no,week_no,category,problem,solution,id_no) Values ('".$idea."','".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["id_no"]."')");
/* $affected_rows = $conn->exec("INSERT into tbl_sub (week_no,category,problem,solution,Fname,Mname,Lname,building,cluster,id_no) Values ('".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["Fname"]."','".$_POST["Mname"]."','".$_POST["Lname"]."','".$_POST["building"]."','".$_POST["cluster"]."','".$_POST["id_no"]."')"); */
echo "<script language=\"Javascript\">alert('Submitted Successfully!');self.location=\"send_ideas.php\"</script>";
?>
include 'conn.php';
$affected_rows = $conn->exec("INSERT into tbl_ideas1 (week_no,category,problem,solution,id_no) Values ('".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["id_no"]."')");
$affected_rows = $conn->exec("Insert into tbl_sub (idea_no,week_no,category,problem,solution,id_no) Values ('".$idea."','".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["id_no"]."')");
/* $affected_rows = $conn->exec("INSERT into tbl_sub (week_no,category,problem,solution,Fname,Mname,Lname,building,cluster,id_no) Values ('".$_POST["week_no"]."','".$_POST["category"]."','".$_POST["problem"]."','".$_POST["solution"]."','".$_POST["Fname"]."','".$_POST["Mname"]."','".$_POST["Lname"]."','".$_POST["building"]."','".$_POST["cluster"]."','".$_POST["id_no"]."')"); */
echo "<script language=\"Javascript\">alert('Submitted Successfully!');self.location=\"send_ideas.php\"</script>";
?>