Jump to content

[SOLVED] MysQL entry


sstangle73

Recommended Posts

function addNew9schb($Type){
  global $conn;
  $q3 = "INSERT INTO users WHERE ID = '$ID' VALUES ('NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', '$Type')";
  if ($result = mysql_query($q3,$conn)) {
    return $result3;
  } else {
    die(mysql_error() . "<br />" . $q3);
  }
}

...

$_SESSION['cresult2'] = addNew9schb($type);

results with.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID = '' VALUES ('NULL', 'NULL', 'NULL', 'NULL', 'NULL', '
INSERT INTO users WHERE ID = '' VALUES ('NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', 'NULL', '9Per')

Link to comment
https://forums.phpfreaks.com/topic/64684-solved-mysql-entry/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.