For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2006 > Scriptproblem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Scriptproblem
Ruprecht Helms

2006-01-24, 6:56 pm

Hi,

how can I display the stored data of an user as value in a formfield.
Actualy the formfield "vorname" shows no entry and the formfield "name"
shows .$row->Name.

What is the correct syntax in this case.

Regards,
Ruprecht

<?
mysql_connect("localhost",<user>,<password> );
$result=mysql_db_query("salzert","SELECT * FROM Benutzer WHERE ID=$id");
echo '<input type="text" name=id value="';
echo $id;
echo '">';
echo "<tr>";
echo " <td>Vorname</td>";
echo '<td><input type="text" name="vorname" value="';
echo $row->Vorname;
echo '"></td>';
echo "</tr>";
echo "<tr>";
echo " <td>Name</td>";
echo '<td><input type="text" name="name" value=".$row->Name."></td>';
echo "</tr>";
....
?>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com