MySQL Forums
Forum List  »  PHP

Re: Data not being entered into database
Posted by: Gordon White
Date: March 13, 2016 05:57PM

Changed the process.php to look like I think you requested.
It displays the correct information:
INSERT INTO data (playersid, dateid, attend, points, payout, hh, ff) VALUES ('7', '12', '1', '6', '100', '25', '25').

But the table does not have data entered.

process.php:

<?php

include "config.php";

$player = $_POST['players'];
$date = $_POST['date'];
$att = $_POST['attend'];
$pts = $_POST['points'];
$amt = $_POST['payout'];
$high = $_POST['hh'];
$fty = $_POST['ff'];

$qry = "INSERT INTO data (playersid, dateid, attend, points, payout, hh, ff) VALUES ('$player', '$date', '$att', '$pts', '$amt', '$high', '$fty')";

$res = mysqli_query($qry);

exit($qry);

mysqli_close($conn);
?>

Options: ReplyQuote


Subject
Written By
Posted
Re: Data not being entered into database
March 13, 2016 05:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.