users_Profile showing wrong data
Hello once again!
having a bit of an issue with the users_Profile page.
When I log into my site as a different user, and go to the user_Profile page where users can update their registration details, I am given my administration details in the password, first and last name feilds (because that's all I added to the sql). This is wrong and should be showing the details for the user that i'm logged in as.
I've tried clearing my browser history, and that didn't help. I'm not versed enough in PHP to look through the code and find the issue.
Here is the code from the users_Profile.php page:
---
<!-- InstanceBeginEditable name="Title" -->
<h3>Please update your registration and contact information below</h3>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="EditRegion1" -->
<div id="UpdateContainer" class="WAATK">
<?php if ($totalRows_WAATKusers > 0) { // Show if recordset not empty ?>
<form action="<?php echo $editFormAction; ?>" method="post" name="WAATKUpdateForm" id="WAATKUpdateForm">
<h1>Profile</h1>
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Password:</th>
<td><input type="text" class="WAATKTextField" name="UserPassword" id="UserPassword" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserPassword'])); ?>" size="32" /></td>
</tr>
<tr>
<th>First Name:</th>
<td><input type="text" class="WAATKTextField" name="UserFirstName" id="UserFirstName" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserFirstName'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Last Name:</th>
<td><input type="text" class="WAATKTextField" name="UserLastName" id="UserLastName" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserLastName'])); ?>" size="32" /></td>
</tr>
<tr>
<th>City::</th>
<td><input type="text" class="WAATKTextField" name="UserCity" id="UserCity" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserCity'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Province:</th>
<td><input type="text" class="WAATKTextField" name="UserState" id="UserState" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserState'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Postal Code:</th>
<td><input type="text" class="WAATKTextField" name="UserZip" id="UserZip" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserZip'])); ?>" size="32" /></td>
</tr>
<tr>
<th>UserRegistrationDate:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserRegistrationDate" id="UserRegistrationDate" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserRegistrationDate'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>UserVerificationCode:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserVerificationCode" id="UserVerificationCode" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserVerificationCode'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>UserIP:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserIP" id="UserIP" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserIP'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>Contact Phone:</th>
<td><input type="text" class="WAATKTextField" name="UserPhone" id="UserPhone" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserPhone'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Fax:</th>
<td><input type="text" class="WAATKTextField" name="UserFax" id="UserFax" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserFax'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Country::</th>
<td><input type="text" class="WAATKTextField" name="UserCountry" id="UserCountry" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserCountry'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Mailing Address:</th>
<td><input type:="text" class="WAATKTextField" name="UserAddress" id="UserAddress" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserAddress'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Address Line 2:</th>
<td><input type="text" class="WAATKTextField" name="UserAddress2" id="UserAddress2" value="<?php echo(str_replace('"', '"', $row_WAATKusers['UserAddress2'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Access Level:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="userLevel" id="userLevel" value="<?php echo(str_replace('"', '"', $row_WAATKusers['userLevel'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
</table>
<div class="WAATKButtonRow">
<input type="Submit" name="Update" id="Update" value="Update">
<input name="UserEmail" type="hidden" id="WAATKUpdateRecordID" value="<?php echo(rawurlencode($row_WAATKusers['UserEmail'])); ?>">
<input type="hidden" name="MM_update" value="WAATKUpdateForm">
</div>
</form>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WAATKusers == 0) { // Show if recordset empty ?>
<div>No record found.</div>
<?php } // Show if recordset empty ?>
</div>
<!-- InstanceEndEditable --></div>
---
Any help would be greatly appreciated.