whizzykid Posted August 7, 2009 Share Posted August 7, 2009 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 More sharing options...
The Little Guy Posted August 7, 2009 Share Posted August 7, 2009 Could you expand on that a little more? Thanks! Link to comment https://forums.phpfreaks.com/topic/169185-help-needed/#findComment-892681 Share on other sites More sharing options...
whizzykid Posted August 7, 2009 Author Share Posted August 7, 2009 Ok,tht is the login page,i want to such that they can uniquely login to their profile. hope this explains better. Link to comment https://forums.phpfreaks.com/topic/169185-help-needed/#findComment-892697 Share on other sites More sharing options...
The Little Guy Posted August 7, 2009 Share Posted August 7, 2009 Usually the profile page is built off session values, so that way everyone goes to the exact same page it just loads information according to his/her session id a.k.a. user id. Link to comment https://forums.phpfreaks.com/topic/169185-help-needed/#findComment-892704 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.