Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
In my db i have a colummn fname where first names are stored. If the name contains a middle name, i wont see whats after the space.
Example:
fname | surname
andrew smith| andersenWhen i retrive fname & surname it outputs:
andrew|andersen. So, "smith" is left out.
code snippet for retriving data:
while($row = mysql_fetch_array($result))
{
$id=$row['id'];
$DocDate=$row['DocDate'];
$moddate=$row['moddate'];
$fname=$row['fname'];
$lname=$row['lname'];
}
Now, i know there's nuttin wrong here since i can print $fname and see both "andrew" and "smith"But when i echo $fname in the form, something goes wrong.
<tr><td>First Name: <input type="text" name="requiredfname" value=<?php echo "$fname"?>>*
</td>Does anyone know why? And whats the fix?

![]() |
Birthday Problem
|
Whats wrong in the trigge...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |