![]() |
|
? |
![]() PHP FAQ PHP Articles PHP Help Bulletin Board PHP Manual (NEW!) First Time PHP'ers Help with programming Sql assignment help PHP Homework Help C# Help
|
? |
|
||||||||||||||||||||
?Reply To This Message | |||||||||||||||||||||||
?Your Name: | |||||||||||||||||||||||
?Your Email: | |||||||||||||||||||||||
?Subject: | |||||||||||||||||||||||
|
|||||||||||||||||||||||
Email replies to this thread, to the address above. | |||||||||||||||||||||||
??wrote: > > I am stuck on this one... > > I have created a form to show a person's contact information > and allow it to be edited. Once edited, then a button will > allow the changes to be sent back to the MySQL db. > > The problem is in the 3rd text box. If I echo the var $addr1 > or $row["addr1"], after the query, the information is printed > out correctly. HOWEVER, when I attempt the same to show this > data in the text box, it shows only the first 4 characters. > Example (should be): 1234 My Street > Example (showing in form): 1234 //Noting here that "My > Street" is missing... > > Any ideas? > > Here is the code: > > > \n"; > include 'connect.php'; // pull $dbcnx from here > if (!$dbcnx) { //If fail to connect, notify. > echo( " Unable to connect to the " . > "database serverat thsi time. " ); > exit(); } else { echo ("Connected "); } > mysql_select_db("fod", $dbcnx); //select FOD db > if (! @mysql_select_db("fod") ) { //if cannot, notify. > echo("Unable to locate the FOD " . > "database at this time. " ); > exit(); } > $id = $_GET["id"]; //get id posted from clientlist.php > $result = mysql_query("select * from client WHERE ID=$id"); > while ($row = mysql_fetch_array($result) ) { > $fname = $row["FName"]; > $lname = $row["LName"]; > $addr1 = $row["Addr1"]; > $addr2 = $row["Addr2"]; > } > > /* below... when presented this way, the address > 1234 My Street, is presented properly > /* > echo ("address l1 =" . $addr1); > > echo (""); > ?> > > > Thank you, in advance, for any ideas you can offer! > - Steven ">??![]() |