PC Nerd Posted January 7, 2007 Share Posted January 7, 2007 ok, i you guys helped me fix a problem with this script earlier today, but now im not getting any output.i know the database entry is working, becauase i can see the new entry, so the $_POST array is working up untill its entered into the database. but when i want to echo the entries onto the page, im getting nothing, but there is no error ????? can anyone help me PLEASEthis is the output from the script, ie seen by the browser....SuccessYour account has been added to our database. Once you receive your confirmation email, follow the link, and your account will be activated, after which you will be able to play on Battle-Ages whenever you wish.The Final data that is in the database is :User_Name -> Password -> Re_Password -> Email -> Re_Email -> Security_Number -> F_Name -> L_Name -> Age -> Created -> and this is the php for the page.....<html><head><link rel="stylesheet" type="text/css" href="B_A-CSS.css"><title>Battle Ages Home</title></head><body><table><thead> <td> <img src="Graphics\Small_Logo.GIF" alt="Logo" width = '75%' hight = '75%' align = 'left'> </td> <td> </td> <td> <img src="Graphics\Small_Logo.GIF" alt="Logo" width = '75%' hight = '75%' align = 'right'> </td></thead><tbody><tr><td class = "left"></td><td class = "cetre"><?php$User_Name = $_POST['User_Name'];$Password = $_POST['Password'];$Email = $_POST['Email'];$Security_Number = $_POST['Security_Number'];$F_Name = $_POST['F_Name'];$L_Name = $_POST['L_Name'];$Age = $_POST['Age'];$_POST['Created'] = date("d/m/Y H-i-s");include("inc_files\Database_link.inc");$New_Player_SQL = "INSERT INTO General_Stats (User_Name, `Password`, Email, Security_Number, F_Name, L_Name, Age) VALUES ('$User_Name', '$Password', '$Email', '$Security_Number', '$F_Name', '$L_Name', '$Age')";$New_Player_Query = mysqli_query($DB_Server, $New_Player_SQL)or die("<h3>Error</h3>\n<br><br>\n<p>An error has occured while submitting your details to the Database. As a result your account has not been created, although you may still receive your confirmation email. If you do receive your Email, please ignore it, and resubmit your account request in 24 hours.</p><br><br>".mysqli_error($DB_Server)."SQL= ".$New_Player_SQL);echo "<h3>Success</h3>\n<br><br>\n<p>Your account has been added to our database. Once you receive your confirmation email, follow the link, and your account will be activated, after which you will be able to play on Battle-Ages whenever you wish.</p>";echo "<br><br>";echo"The Final data that is in the database is :<br>\n";foreach($_POST as $field => $Value) {echo "$field -> $value\n<br>\n";}?></td><td></td></tr></tbody></table></body></html>can anyone help me PLEASE......... :-\ Quote Link to comment Share on other sites More sharing options...
alpine Posted January 7, 2007 Share Posted January 7, 2007 php differs between upper and lower case, V is not the same as v - so you have one of those in your foreach... Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted January 7, 2007 Author Share Posted January 7, 2007 thanks, that worked perfectly Quote Link to comment Share on other sites More sharing options...
alpine Posted January 7, 2007 Share Posted January 7, 2007 And please, next time post your code between code tags (the button with # on it) Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted January 7, 2007 Author Share Posted January 7, 2007 soz, i agree i can get really annoying, once again, ill do it next time 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.