Since nobody could answer my first question, probably cause it was impossible to explain fine lol.
Yes, I'm very new to PHP but perhaps someone could explain why this isn't inserting into my table on msql.
<?php
$wins=$_POST['winner'];
$loss=$_POST['loser'];
$draw=('1');
$streak=$_POST[''];
$team1=$_POST['select2'];
$team2=$_POST['select'];
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("stats", $con);
if ($wins==$loss){
mysql_query("INSERT INTO standings (draw,) VALUES (".$draw.")");}
else echo "false!";
mysql_close($con);
?>
I have a form with the name "winner" && "loser"
Basically I have it comparing fine, if the score is a draw I want the variable $wins && $loss to insert into table the result from $draw variable.
But it's not inserting into data base? please someone explain! thanks