Jump to content

[SOLVED] looping through an array.... not getting the ouput but theres no error mesage???


PC Nerd

Recommended Posts

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 PLEASE


this is the output from the script, ie seen by the browser....


Success



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.



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......... :-\

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.