Jump to content

help needed.


whizzykid

Recommended Posts

my code i tried to make it such that it uniquely goes to a profile but it doesnt.

here is my code.

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO `Login form` (`Account Number`, Password) VALUES (%s, %s)",
                       GetSQLValueString($_POST['Account_Number'], "text"),
                       GetSQLValueString($_POST['Password'], "int"));

  mysql_select_db($database_oceapcom_oceanicgroup, $oceapcom_oceanicgroup);
  $Result1 = mysql_query($insertSQL, $oceapcom_oceanicgroup) or die(mysql_error());

  $insertGoTo = "oc.jpg";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}

Link to comment
https://forums.phpfreaks.com/topic/169185-help-needed/
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.