dumb question
Moderator: General Moderators
dumb question
My database values are returning to my sticky form, but all data after the spaces are being dropped. What am I missing?
sorry
all i meant was any strings in the sql query would have to be inside quotation marks.
as long as the data in the database is correct just put quotes in your form
here is a quick example
$result = mysql_query( $query );
$row=mysql_fetch_row($result);
echo "<input type='text' name='field1' value=' ".$row[0]." '>";
echo "<input type='text' name='field2' value=' ".$row[1]." '>";
Hope this is what you mean, and i hope this helps
all i meant was any strings in the sql query would have to be inside quotation marks.
as long as the data in the database is correct just put quotes in your form
here is a quick example
$result = mysql_query( $query );
$row=mysql_fetch_row($result);
echo "<input type='text' name='field1' value=' ".$row[0]." '>";
echo "<input type='text' name='field2' value=' ".$row[1]." '>";
Hope this is what you mean, and i hope this helps