Retrieving Data From MySQL and Inserting Into a Table

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mjjk91
-


Joined: 03 Feb 2004
Posts: 75
Location: Australia

PostPosted: Mon Mar 29, 2004 4:35 am    Post subject: Retrieving Data From MySQL and Inserting Into a Table Reply with quote

G'Day Everyone,

Quick Question. I have successfully retrieved information from a database, and have shown it on a webpage, but for looks purposes, i want to show the information in a series of textfields. At the moment, it just outputs to the screen as normal text. Does anyone know any way of doing this?

Cheers

Mick Koch
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Mar 29, 2004 7:51 pm    Post subject: Reply with quote

Hi mjjk91,
Just use text area tags and insert the variable name for your info:
Code:
echo"<textarea rows=2 cols=30 name="description">$variablename</textarea>";
You'll have to adjust the rows and cols to fit, of course. :wink:
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Mar 29, 2004 10:42 pm    Post subject: Reply with quote

Or you can use text fields:
Code:
<form>
<input type="text" value="$variable1">
<input type="text" value="$variable2">
<input type="text" value="$variable3">
</form>

_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group