Jump to content

Recommended Posts

I have a small database with the following fields.

 

First Name

Last Name

Address

City

State

Zip

 

For some reason, when I run my edit_client.php it only displays the numbers in the address field.

The address in the database is 1658 Tamarisk Ln.

 

The PHP file only shows 1658. I know there is something with the sting 'address' but not sure what I need to do.

 

Here is my PHP.

 

<?

$data = mysql_query("SELECT * FROM clients WHERE id='$clientid'")

or die(mysql_error());

while($info = mysql_fetch_array( $data ))

{

 

Print "<font size=4>Editing Client  ";

Print "".$info['lname']."";

Print "</font>";

Print "<br><br>";

Print $fname;

Print"

<form action=client_add.php method=POST>

 

First Name<br>

<input type=text name=fname value=".$info['fname']." size=40><br><br>

 

Last Name<br>

<input type=text name=lname value=".$info['lname']." size=40><br><br>

 

Address<br>

<input type=text name=address value=".$info['address']." size=40><br><br>

 

City<br>

<input type=text name=city value=".$info['city']." size=40><br><br>

 

State<br>

<input type=text name=state value=".$info['state']." size=40><br><br>

 

Zip Code<br>

<input type=text name=zip value=".$info['zip']." size=40><br><br>

 

Client Email Address<br>

<input type=text name=email value=".$info['email']." size=40><br><br>

 

Client Notes<br>

<textarea cols=30 rows=4 name=notes value=".$info['notes']."></textarea><br><br>

 

<input type=submit value=Send>

</form>";

 

 

}

?>

 

 

Thanks for the help.

Link to comment
https://forums.phpfreaks.com/topic/42272-solved-displaying-data/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.