My clients can't see their info they input, fields are blank?

When my clients log in to edit their account they should see their name and info they input to update it but all the fields are blank? Thank you for any help, we moved our database from Dreamhost to Godaddy and don’t know what happened?

[php]

<?php include ("header.php"); ?> <?php $idx = $_SESSION['idx']; $clientinfo = load_client_info_by_index($idx); ?>

Edit Profile

Client Name
Parent or Guardian Name:

Last
"/>

First
"/>
MI
"/>
Last Name
"/>
First Name
"/>
MI
" />
DOB
"/> "/> "/>
Gender:
>Female >Male
       

Street Address
"/>
"/>

City " /> State "/> Zip Code "/>

   
Home Phone:
"/>
Work Phone:
"/>
Cell Phone:
" />
E-Mail:
"/>
Measurements:
>30- >32 >34 >36 >38 >40 >42 >44 >46 >48 >50+ >N/A >A >B >C >D >DD+
 
Height:
  <input name="feet" type="text" id="feet" size="2" maxlength="2"  value = "<?php  echo $clientinfo['feet']?>"/>
  Ft 
  <input name="inches" type="text" id="inches" size="3" maxlength="2"  value = "<?php  echo $clientinfo['inches']?>"/>
  In</td>
<td>
  Weight:<br />
  <input name="pounds" type="text" id="pounds" size="5" maxlength="4"  value = "<?php  echo $clientinfo['pounds']?>"/> 
  Pounds</td>
<td>Hair:<br />
    <select name="hair" id="hair">
      <option value="Blonde" <?php if ($clientinfo['hair'] == "Blonde") echo "selected='selected'" ?> >Blonde</option>
      <option value="Brown" <?php if ($clientinfo['hair'] == "Brown") echo "selected='selected'" ?>>Brown</option>
      <option value="Black" <?php if ($clientinfo['hair'] == "Black") echo "selected='selected'" ?>>Black</option>
      <option value="Red" <?php if ($clientinfo['hair'] == "Red") echo "selected='selected'" ?>>Red</option>
      <option value="Other" <?php if ($clientinfo['hair'] == "Other") echo "selected='selected'" ?>>Other</option>
    </select>
Eyes:
>Blue >Green >Brown >Hazel
Union:
Yes >No
 
Pants:
"/>
Shirt:
>XS >S >M >L >XL >XXL+
Jacket:
"/>
Dress:
" />
Skirt:
" />
 
Experience:
<?php echo $clientinfo['experience']?>
Skills:
<?php echo $clientinfo['skills']?>
         
<?php include ("footer.php"); ?>

[/php]

I’m not able to see any select query in your form

you are using $clientinfo for fetching the rows. But what does it relates to. I believe you should put this select query at the top of the page to call the record
$clientinfo=mysql_fetch_array (mysql_query (“select * from yourtable where id_no=’”.$_SESSION [‘id’]."’ "));

ahamedapps

Thank you so much for your help but I am so green I don’t understand this?

Sponsor our Newsletter | Privacy Policy | Terms of Service