Minimeallolla Posted November 8, 2010 Share Posted November 8, 2010 if(isset($_COOKIE['ID_my_site'])) { $username = mysql_real_escape_string( $_COOKIE['ID_my_site'] ); $pass = mysql_real_escape_string( $_COOKIE['Key_my_site'] ); $check = mysql_query("SELECT * FROM users WHERE username = '$username' AND password = '$pass'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass == $info['password']) echo "$username"; } } if (isset($_POST['submit'])) { $firstname = ($_POST['firstname']); $lastname = ($_POST['lastname']); $filename = "***/$username.info.php" or exit("Unable to open file!"); $handle = @fopen($filename, 'x+')or die(mysql_error()); $content = "nothing i enter here gets inserted into the file"; @fwrite($handle, $content)or die(mysql_error()); @fclose; } Quote Link to comment Share on other sites More sharing options...
gizmola Posted November 8, 2010 Share Posted November 8, 2010 We need to know more about what problem you are having. You should remove the @ symbol from the front of the functions you are calling, as they suppress ordinary error handling. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 8, 2010 Author Share Posted November 8, 2010 If i remove the @ infront of fwrite it turns into a function error -.- and no error message comes up the way it is, it just doesnt echo anytihng Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.