[[*pagetitle]]
Plant Analysis
Variables used in Plant Analysis recommendation programs.
user->get('id');
/* Database connection */
//$con = mysqli_connect("localhost", "root", "R3M0T31", "cropmonitor");
$con = mysqli_connect("localhost", "cropmonitor", "brvnCcaEYxlPCS3", "cropmonitor");
/* Check Database Connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
/* Image Insert for Plant Identification */
if(isset($_POST["insert"]))
{
$file = addslashes(file_get_contents($_FILES["image"]["tmp_name"]));
$query = "INSERT INTO plant_images(name) VALUES ('$file')";
if(mysqli_query($con, $query))
{
echo '';
}
}
?>
?>
Nutrient Requirements