[SOLVED] Simple Php Code Problem

This is a discussion on "[SOLVED] Simple Php Code Problem" within the PHP Forum section. This forum, and the thread "[SOLVED] Simple Php Code Problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 17th, 2007, 20:03
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Simple Php Code Problem

Hello i am pulling records from a mysql database & displaying them on dreamweaver php page. The records from the database are displaying in text fields with no problems using the code below:

PHP: Select all

<input name="contact_email_address" type="text" id="contact_email_address" value=" <?php echo isset($details['contact_email_address']) ? $details['contact_email_address'] : ''?>" size="35" />
The problem i am having is that i need to do the same as above (Display records from a mysql database) but instead of using text fields to display the record, i need to use a "text are" for the last record in my display page.

Below is a html code example for a textfield:

<textarea name="who_id_like_to_meet" id="who_id_like_to_meet" cols="45" rows="5"></textarea>

Can anyone provide me a example of php code to display a record from a mysql databse into a dreamweaver text field??

Cheers
Reply With Quote

  #2 (permalink)  
Old Oct 17th, 2007, 20:26
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Simple Php Code Problem

Is this what you want?

PHP: Select all

 <textarea name="who_id_like_to_meet" id="who_id_like_to_meet" cols="45" rows="5">
   <?php echo isset($details['contact_email_address']) ? $details['contact_email_address'] : ''?>
</textarea>
Reply With Quote
  #3 (permalink)  
Old Oct 17th, 2007, 20:48
Reputable Member
Join Date: Oct 2007
Location: Liverpool UK
Age: 29
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple Php Code Problem

Outstanding it worked.... Thanks very much! How do i add rep to your profile for helping me?
Reply With Quote
  #4 (permalink)  
Old Oct 17th, 2007, 21:02
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Simple Php Code Problem

That button
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] simple layout problem saltedm8 Web Page Design 13 May 2nd, 2008 18:02
[SOLVED] Validation code problem psycho wolvesbane JavaScript Forum 6 Apr 24th, 2008 10:16
[SOLVED] simple div problem hhelen Web Page Design 5 Apr 4th, 2008 14:56
[SOLVED] Php code problem longstand PHP Forum 2 Nov 8th, 2007 19:14
[SOLVED] image display php code problem longstand PHP Forum 7 Oct 19th, 2007 17:28


All times are GMT. The time now is 11:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43